Skip to main content

Upgrading MySQL

Comments

4 comments

  • cPanelMichael
    Hello :) Ensure you use Web Host Manager to upgrade MySQL: "WHM Home " Software " MySQL Upgrade" This takes you through each step and lists potential issues that might arise when upgrading to a newer version. Thank you.
    0
  • petru
    Hi Michael. You may have read through my post a little too fast. It wasn't exactly the question I asked :)
    0
  • vanessa
    I would say that it's generally safe to jump from MySQL 5.0 or 5.1 to 5.5, but I wouldn't go directly to 5.6 Go to 5.5 first. The main issue I've seen with upgrading to 5.5 is the lack of compatibility with certain my.cnf options. So go through /etc/my.cnf first and make sure you don't have anything legacy in there - primarily: *safe-show-database *anything with set-variable= in front of it If there are issues, MySQL will still upgrade but will likely either not start properly, or spit out errors. Once you get them resolved just start it up and run: mysql_upgrade This will upgrade your tables. The you can proceed with upgrading to 5.6. Do note that upgrading MySQL will break PHP since it's compiled against the current version's client libraries. I wrote a quick script a while back to prevent PHP from having these issues, though it's only an interim fix to keep your sites up until you're able to recompile. You can find the script here: [url=http://www.thecpaneladmin.com/upgrading-mysql-without-breaking-php/]Upgrading MySQL Without Breaking PHP :: The cPanel Admin As far as application compatibility, that shouldn't be too difficult to confirm with the vendors of whatever you're running, unless it's a custom app. Hope that answers your question.
    0
  • cPanelMichael
    [quote="petru, post: 1598271">Hi Michael. You may have read through my post a little too fast. It wasn't exactly the question I asked :)
    Yes, it's generally safe to upgrade MySQL, but it's important to use the option I referenced: "WHM Home " Software " MySQL Upgrade" This will take you through all of the steps, including running EasyApache to ensure PHP is built against the new version. Thank you.
    0

Please sign in to leave a comment.