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!

MySQL 5.6 upgrade to MariaDB 10.3- Potential Issues?

Discussion in 'Database Discussion' started by jazee, Apr 6, 2019.

  1. jazee

    jazee Well-Known Member

    Jan 12, 2015
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    I've been getting the nagging last few weeks by WHM/Cpanel to upgrade from MySQL 5.6 to 5.7. WHM Recommends upgrading to MariaDB 10.3. Just to be safe I stuck with MySQL. Both upgrades give a critical warning that the new versions will default to strict mode meaning it will break any INSERT or UPDATE statements that no field values. I found this to be true but simply adding SQL_MODE= to the my.cnf file and rebooting MySQL quickly fixes the issue.

    Wondering how significant the benefit would be of upgrading from MySQL 5.7 to MariaDB 10.3 and more importantly, what have been the experiences of people that have gone with MariaDB 10.3? Is there any other issue other than have to disable strict mode and generating new mysqldumps? Or is it pretty smooth/bulletproof and issues are extremely rare? Will it screw up my MySQL DB replication I have setup?

    Trying to get a feel for what I'd be in for if I went to MariaDB 10.3 and if the benefits are significant enough to even consider doing it.
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Hello @jazee,

    One caveat to the MariaDB 10.3 upgrade is that MariaDB upgrades are currently one-way only. You can't upgrade to MariaDB 10.3 and then switch back to MySQL 5.7.

    Most of the MariaDB 10.3 upgrade reports I've seen suggest a fairly smooth upgrade process (the strict mode change you referenced is the issue that seems to generate the most feedback). That said, it's generally a good idea to test the upgrade on a non-production machine if you can. Here's one of my responses on another thread you may find helpful:

    Thank you.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

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