Results 1 to 3 of 3

Thread: upgrading from mysql 4.0.x to 4.1.x went too easy?

  1. #1
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Nov 2001
    Posts
    213
    cPanel/WHM Access Level

    DataCenter Provider

    Default upgrading from mysql 4.0.x to 4.1.x went too easy?

    Hello everyone,

    OK I had read all the threads here on upgrading mysql and other articles etc. and I was expecting a bit of a mess when we did it. It actually went very smooth/easy so I'm wondering if things have changed or if the problems are just "lunking" and have not show themselves yet.

    Here is what we did:

    - ran /scripts/upcp to insure everything was up to date
    - went into tweak settings to change mysql for 4.0.x to 4.1.x, saved and then waited for things to run.
    - checked the mysql log to insure that thing updated, they did.
    - ran mysql_fix_privilege_tables to fix the permissions

    At this point we assumed that php and perl/cgi would be broke. However, when we ran php -v we did not get any library errors. We looked at a few websites on the server that used php/mysql and perl/cgi/mysql and it all worked. We were quite confused at this point.

    Just "to be sure" we:

    - ran easyapache/rebuilt php just to insure that php was using the latest libraries
    - ran /scripts/perlinstaller --force Bundle:BD::mysql to insure that perl libraries were updated.

    Everything has been going smooth so far. Anyone have any comments/thoughts on a receint upgrade?

    Thanks,

    Frank

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge AndyReed's Avatar
    Join Date
    May 2004
    Location
    Minneapolis, MN
    Posts
    2,223

    Default

    To upgrade MySQL from v4.x to v4.1.x:
    You must have backup copies of your MySQL DBs, just in case :-)

    Login WHM >> Tweak Settings, and change MySQL to 4.1.x and select the checkbox next to "Use old style (4.0) passwords with mySQL 4.1+ (required if you have problems with php apps authenticating)". Then, click on "Save" button.

    SSH to the server and run these commands (in that order)
    Code:
    /scripts/mysqlup --force
    /scripts/easyapache
    /scripts/perlinstaller --force Bundle::DBD::mysql
    DONE!
    Andy Reed
    CCNA, RHCE, and Ubuntu Technologist
    ServerTune.com

  3. #3
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Nov 2001
    Posts
    213
    cPanel/WHM Access Level

    DataCenter Provider

    Default

    Quote Originally Posted by AndyReed
    To upgrade MySQL from v4.x to v4.1.x:
    You must have backup copies of your MySQL DBs, just in case :-)
    Yes, we did this.

    Login WHM >> Tweak Settings, and change MySQL to 4.1.x and select the checkbox next to "Use old style (4.0) passwords with mySQL 4.1+ (required if you have problems with php apps authenticating)". Then, click on "Save" button.
    We did this except we have not had to check the password part. I'm assuming that this is only the passwords used to access mysql and that is working smoothly.

    SSH to the server and run these commands (in that order)
    Code:
    /scripts/mysqlup --force
    /scripts/easyapache
    /scripts/perlinstaller --force Bundle::DBD::mysql
    We did not run the /scripts/mysqlup --force, whm seemed to run that when we saved (we watched it from top), then we ran the easyapache and perlinstaller.

    If we run mysql -V it says 4.1 and listing the rpms shows:

    MySQL-embedded-4.1.21-0.glibc23
    MySQL-devel-4.1.21-0.glibc23
    MySQL-server-4.1.21-0.glibc23
    MySQL-shared-4.1.21-0.glibc23
    MySQL-bench-4.1.21-0.glibc23
    MySQL-client-4.1.21-0.glibc23

    So I think it went just fine. The only "fun" is that with the WHM upgrades things just seem to work a bit differently than the way people had documented only a month or so ago.

    Frank

Similar Threads

  1. Column count of mysql.db is wrong upgrading mySQL
    By Metro2 in forum Database Discussions
    Replies: 16
    Last Post: 05-05-2010, 10:16 AM
  2. Upgrading MySQL
    By nitaish in forum cPanel & WHM Discussions
    Replies: 3
    Last Post: 04-22-2010, 07:18 PM
  3. Easy way to backup all MySQL db on server?
    By embsupafly in forum cPanel & WHM Discussions
    Replies: 4
    Last Post: 07-13-2006, 09:19 AM
  4. Upgrading To MySQL 4.1
    By derekivey in forum cPanel & WHM Discussions
    Replies: 6
    Last Post: 12-05-2005, 02:32 AM
  5. It's too easy to delete MySQL databases via Cpanel!
    By Valetia in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 02-15-2004, 12:08 PM