Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    51
    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:
    156
    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:
    16,160
    Likes Received:
    370
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    In WHM > Software > MySQL Upgrade it states this:

     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,609
    Likes Received:
    32
    Trophy Points:
    238
    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!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice