The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Upgrade mysql from 4.1.22 to 5

Discussion in 'General Discussion' started by ranj, Jul 17, 2011.

  1. ranj

    ranj Registered

    Joined:
    Jul 17, 2011
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    I need to upgrade mysql from 4.1.22 to 5, How can I do it in cpanel server/whm?
    If I upgrade it, will WHM automatically correct users DB to match version 5?

    --
    Regards,
    Ranj
     
  2. ANewDay

    ANewDay Well-Known Member

    Joined:
    Sep 11, 2006
    Messages:
    86
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    USA
    I'm also wondering the same. Are there any side effects to this?
     
  3. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,476
    Likes Received:
    202
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    In WHM > Software > MySQL Upgrade it states this:

     
  4. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Hello,

    Before performing any upgrades for MySQL, I would highly suggest making a full MySQL backup for all the databases in case anything goes wrong. You can do that in root SSH using the following command:

    Code:
    mysqldump --add-drop-table --all-databases | gzip > /home/alldatabases.sql.gz
    The command might take awhile to run. Of note, I've given the command with gzip so it will be compressed and have it going into /home so it will not take up space as /var normally doesn't have as much space.

    To restore from that backup should you have any issues with the MySQL upgrade, you can then use the following command to restore all those backup databases:

    Code:
    gunzip < /home/alldatabases.sql.gz | mysql -u root
    Thanks!
     
Loading...

Share This Page