Page 1 of 2 12 LastLast
Results 1 to 15 of 27

Thread: Update MySQL to 4.1.19 manually through cpanel

  1. #1
    Member
    Join Date
    Jan 2004
    Location
    Roswell, GA
    Posts
    363

    Talking Update MySQL to 4.1.19 manually through cpanel

    There's no need to wait for MySQL 4.1.19 to be added to the CURRENT, RELEASE, or STABLE builds, or the need to install it from RPM. I found a way to do it through cpanel while running a non-edge build.

    First thing we need to do is update cPpkgversion to tell the server to get 4.1.19.

    For Fedora 4 users, go here: /root/.cpobjcache/fedora_4_RELEASE_MySQL I'm guessing the rest of the versions and OSs will be similar.

    Now, lets edit cPpkgversion: for me: nano ./cPpkgversion You may have to use vi or pico depending on your OS.

    Now, we have the file where cPanel looks for it's MySQL version, right now, it looks like:

    Code:
    package cPPkgs::MySQL;
    $PKGDATA = {
                 'x86_64' => {
                               '4.0' => {
                                          'flags' => '',
                                          'files' => [
                                                       'MySQL-shared-4.0.27-0.%arch%.rpm',
                                                       'MySQL-devel-4.0.27-0.%arch%.rpm',
                                                       'MySQL-embedded-4.0.27-0.%arch%.rpm',
                                                       'MySQL-client-4.0.27-0.%arch%.rpm',
                                                       'MySQL-bench-4.0.27-0.%arch%.rpm',
                                                       'MySQL-server-4.0.27-0.%arch%.rpm',
                                                       'MySQL-shared-4.0.27-0.%arch%.rpm'
                                                     ],
                                          'version' => '4.0.27',
                                          'release' => '0',
                                          'dir' => '4.0.27-0'
                                        },
                               '5.0' => {
                                          'flags' => '',
                                          'files' => [
                                                       'MySQL-shared-5.0.18-0.glibc23.%arch%.rpm',
                                                       'MySQL-shared-compat-5.0.18-0.glibc23.%arch%.rpm',
                                                       'MySQL-devel-5.0.18-0.glibc23.%arch%.rpm',
                                                       'MySQL-embedded-5.0.18-0.glibc23.%arch%.rpm',
                                                       'MySQL-client-5.0.18-0.glibc23.%arch%.rpm',
                                                       'MySQL-bench-5.0.18-0.glibc23.%arch%.rpm',
                                                       'MySQL-server-5.0.18-0.glibc23.%arch%.rpm',
                                                       'MySQL-shared-5.0.18-0.glibc23.%arch%.rpm'
                                                     ],
                                          'version' => '5.0.18',
                                          'release' => '0.glibc23',
                                          'dir' => '5.0.18-0'
                                        },
                               '4.1' => {
                                          'flags' => '',
                                          'files' => [
                                                       'MySQL-shared-4.1.18-0.glibc23.%arch%.rpm',
                                                       'MySQL-devel-4.1.18-0.glibc23.%arch%.rpm',
                                                       'MySQL-embedded-4.1.18-0.glibc23.%arch%.rpm',
                                                       'MySQL-client-4.1.18-0.glibc23.%arch%.rpm',
                                                       'MySQL-bench-4.1.18-0.glibc23.%arch%.rpm',
                                                       'MySQL-server-4.1.18-0.glibc23.%arch%.rpm',
                                                       'MySQL-shared-4.1.18-0.glibc23.%arch%.rpm'
                                                     ],
                                          'version' => '4.1.18',
                                          'release' => '0.glibc23',
                                          'dir' => '4.1.18-0'
                                        }
                             },
                 'x86' => {
                            '4.0' => {
                                       'flags' => '',
                                       'files' => [
                                                    'MySQL-shared-4.0.27-0.%arch%.rpm',
                                                    'MySQL-shared-compat-4.0.27-0.%arch%.rpm',
                                                    'MySQL-devel-4.0.27-0.%arch%.rpm',
                                                    'MySQL-embedded-4.0.27-0.%arch%.rpm',
                                                    'MySQL-client-4.0.27-0.%arch%.rpm',
                                                    'MySQL-bench-4.0.27-0.%arch%.rpm',
                                                    'MySQL-server-4.0.27-0.%arch%.rpm',
                                                    'MySQL-shared-4.0.27-0.%arch%.rpm'
                                                  ],
                                       'version' => '4.0.27',
                                       'release' => '0',
                                       'dir' => '4.0.27-0'
                                     },
                            '5.0' => {
                                       'flags' => '',
                                       'files' => [
                                                    'MySQL-shared-5.0.18-0.glibc23.%arch%.rpm',
                                                    'MySQL-shared-compat-5.0.18-0.glibc23.%arch%.rpm',
                                                    'MySQL-devel-5.0.18-0.glibc23.%arch%.rpm',
                                                    'MySQL-embedded-5.0.18-0.glibc23.%arch%.rpm',
                                                    'MySQL-client-5.0.18-0.glibc23.%arch%.rpm',
                                                    'MySQL-bench-5.0.18-0.glibc23.%arch%.rpm',
                                                    'MySQL-server-5.0.18-0.glibc23.%arch%.rpm',
                                                    'MySQL-shared-5.0.18-0.glibc23.%arch%.rpm'
                                                  ],
                                       'version' => '5.0.18',
                                       'release' => '0.glibc23',
                                       'dir' => '5.0.18-0'
                                     },
                            '4.1' => {
                                       'flags' => '',
                                       'files' => [
                                                    'MySQL-shared-4.1.18-0.glibc23.%arch%.rpm',
                                                    'MySQL-devel-4.1.18-0.glibc23.%arch%.rpm',
                                                    'MySQL-embedded-4.1.18-0.glibc23.%arch%.rpm',
                                                    'MySQL-client-4.1.18-0.glibc23.%arch%.rpm',
                                                    'MySQL-bench-4.1.18-0.glibc23.%arch%.rpm',
                                                    'MySQL-server-4.1.18-0.glibc23.%arch%.rpm',
                                                    'MySQL-shared-4.1.18-0.glibc23.%arch%.rpm'
                                                  ],
                                       'version' => '4.1.18',
                                       'release' => '0.glibc23',
                                       'dir' => '4.1.18-0'
                                     }
                          }
               };
    1;
    Now, simply replace the every instance of 4.1.18 with 4.1.19. Save and exit.

    Enter WHM, click Update Server Software, it'll update you to 4.1.19!!

    If you'd like me to do this for you, click the link in my sig, go to Server Security, and order the update MySQL package (near the bottom).

    Enjoy 4.1.19!
    Number1Host.net
    Shared, Reseller, and Dedicated Hosting
    Server Setup, Management, and Security
    The Web's Number 1 Host - Number1Host.net

  2. #2
    Member cyrus's Avatar
    Join Date
    Mar 2005
    Posts
    16

    Red face

    Dude ! This really worked ! After all the downloading and modifying crap i've been through, this reallly worked!
    Thanks again for sharing it
    Keep rocking !

  3. #3
    Member
    Join Date
    Jan 2004
    Location
    Roswell, GA
    Posts
    363

    Default

    Quote Originally Posted by cyrus
    Dude ! This really worked ! After all the downloading and modifying crap i've been through, this reallly worked!
    Thanks again for sharing it
    Keep rocking !


    Glad to help, I was wondering if anyone was ever going to reply!
    Number1Host.net
    Shared, Reseller, and Dedicated Hosting
    Server Setup, Management, and Security
    The Web's Number 1 Host - Number1Host.net

  4. #4
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Mar 2004
    Posts
    347

    Default

    What are the adventages of MySQL 4.1.19 you see?

    Thanks

  5. #5
    Member
    Join Date
    Jan 2004
    Location
    Roswell, GA
    Posts
    363

    Default

    Quote Originally Posted by netlook
    What are the adventages of MySQL 4.1.19 you see?

    Thanks
    It fixes a security vulnerability in 4.1.18, and you can use PHP 5.1.4
    Number1Host.net
    Shared, Reseller, and Dedicated Hosting
    Server Setup, Management, and Security
    The Web's Number 1 Host - Number1Host.net

  6. #6
    Member
    Join Date
    Jun 2005
    Posts
    39

    Default

    Is this version 4.1 better than 5

  7. #7
    Member
    Join Date
    Feb 2005
    Location
    East Vancouver, BC, Canada
    Posts
    29

    Default

    Good work Cool Dude! I upgraded to MySQL 4.1.19 and managed to convince /scripts/easyapache to run for me. Everything looks good so far.

  8. #8
    Member
    Join Date
    Mar 2006
    Location
    Turkey
    Posts
    149

    Default

    upcp is now updating MySQL to 4.1.19

  9. #9
    Member
    Join Date
    May 2006
    Posts
    64

    Default

    Soould I run /scripts/easyapache after every upgrade of MySQL via CPanel updates ?

  10. #10
    Member
    Join Date
    Mar 2006
    Location
    Turkey
    Posts
    149

    Default

    If you are not changing the major version (4.0.x -> 4.1.x or 4.1 -> 5.0 etc.) you don't need to run easyapache after every upgrade.

  11. #11
    Member
    Join Date
    Jan 2004
    Location
    Roswell, GA
    Posts
    363

    Default

    Yup, looks like cPanel has rolled 4.1.19 all the way down to the stable builds.
    Number1Host.net
    Shared, Reseller, and Dedicated Hosting
    Server Setup, Management, and Security
    The Web's Number 1 Host - Number1Host.net

  12. #12
    BANNED
    Join Date
    Jul 2005
    Posts
    537

    Default

    Quote Originally Posted by cooldude7273
    Yup, looks like cPanel has rolled 4.1.19 all the way down to the stable builds.
    /scripts/mysqlup --force
    MySQL Setup Script Version 7.0
    This is the MySQL installer for OS FreeBSD
    Source: packages-5.4-release
    looking up ftp13.freebsd.org
    connecting to ftp13.freebsd.org:21
    setting passive mode
    opening data connection
    initiating transfer
    remote size / mtime: 5419513 / 1114211126
    /root/.cpbsdpkgs/6-1-2006.INDEX 5292 kB 1127 kBps
    mysql-client-4.1 (4.1.10a) is already installed.
    mysql-client-4.1 (4.1.10a) is newer then requested version 4.1.10a. (no install needed)
    Source: packages-5.4-release
    looking up ftp13.freebsd.org
    connecting to ftp13.freebsd.org:21
    setting passive mode
    opening data connection
    initiating transfer
    remote size / mtime: 5419513 / 1114211126
    /root/.cpbsdpkgs/6-1-2006.INDEX 5292 kB 1127 kBps
    mysql-client-4.1 (4.1.10a) is already installed.
    mysql-client-4.1 (4.1.10a) is newer then requested version 4.1.10a. (no install needed)
    mysql-server-4.1 (4.1.10a) is already installed.
    mysql-server-4.1 (4.1.10a) is newer then requested version 4.1.10a. (no install needed)
    mysql-server-4.1 (4.1.10a) is already installed.
    mysql-server-4.1 (4.1.10a) is newer then requested version 4.1.10a. (no install needed)
    Install Complete

  13. #13
    Member
    Join Date
    Jan 2004
    Location
    Roswell, GA
    Posts
    363

    Default

    ^^ For linux, that is. It looks like mysqlup is trying to download the latest mysql packages from the freebsd site. And it is doing so correctly, the latest for FreeBSD 5.4 is MySQL 4.1.10a
    Number1Host.net
    Shared, Reseller, and Dedicated Hosting
    Server Setup, Management, and Security
    The Web's Number 1 Host - Number1Host.net

  14. #14
    Member cyrus's Avatar
    Join Date
    Mar 2005
    Posts
    16

    Default

    Quote Originally Posted by trhosting.net
    If you are not changing the major version (4.0.x -> 4.1.x or 4.1 -> 5.0 etc.) you don't need to run easyapache after every upgrade.
    Well with every mysql update, you have a new mysq libclient for php too So I would suggest you recompile php as well.

  15. #15
    BANNED
    Join Date
    Jul 2005
    Posts
    537

    Default

    Quote Originally Posted by cooldude7273
    ^^ For linux, that is. It looks like mysqlup is trying to download the latest mysql packages from the freebsd site. And it is doing so correctly, the latest for FreeBSD 5.4 is MySQL 4.1.10a
    I upgraded it last night via ports since UPCP cant do it and 4.1.19 was installed for Freebsd 5.4.

Page 1 of 2 12 LastLast

Similar Threads

  1. Manually upgrade Mysql to 5.5, CPanel's Database lost
    By dihuta in forum New User Questions
    Replies: 0
    Last Post: 07-25-2010, 06:52 AM
  2. How to update manually Compiled PHP?
    By furkamania in forum cPanel & WHM Discussions
    Replies: 2
    Last Post: 07-12-2010, 11:01 AM
  3. Update nameserver zones manually
    By Henrik in forum cPanel & WHM Discussions
    Replies: 2
    Last Post: 02-11-2008, 03:16 PM
  4. how do I manually update the webstats?
    By SoftDux in forum cPanel & WHM Discussions
    Replies: 5
    Last Post: 11-23-2006, 01:11 PM
  5. Way to manually update CPU/Memory/MySQL Usage?
    By MDurai in forum cPanel & WHM Discussions
    Replies: 4
    Last Post: 01-01-2006, 12:47 PM