Last modified: August 10, 2021
This interface allows you to manage MySQL® or MariaDB® version upgrades (for example, when you upgrade from MySQL 5.7 to 8.0). After you select your MySQL or MariaDB version, WHM automatically keeps your database engine up-to-date. This means, for example, that whenever the vendor releases a new patch for your version of MySQL or MariaDB, WHM automatically applies the patch to your installation.
We strongly recommend that you back up your database before you upgrade your database or change to MariaDB.
This feature does not support downgrades of database engine versions. We strongly recommend that you do not attempt to downgrade MySQL or MariaDB.
The system considers MariaDB to be an upgrade from MySQL. If you change the database engine to MariaDB, you cannot change back to MySQL.
You cannot upgrade MySQL 8 to MariaDB 10.x due to incompatibilities between these versions. For more information, read MariaDB’s documentation. However, system administrators can choose either MySQL or MariaDB during the cPanel & WHM installation process. For more information, read our Installation Guide.
If CloudLinux’s™ MySQL Governor exists on your server, MySQL upgrades will not work via this interface. If you wish to remove MySQL Governor, read CloudLinux’s MySQL Governor documentation and research how this affects you.
We do not support the use of MySQL’s sha256_password plugin for MySQL 5.7, MySQL 8, MariaDB 10.2, or MariaDB 10.3.
phpinfofile may display a different version of MySQL than the version that you select.
The API version that you see in the
phpinfofile is the built-in MySQL API that PHP includes.
buildapacheapplication uses the MySQL libraries and headers on the server itself, and you change the MySQL version, Apache cannot function correctly. Because cPanel & WHM updates MySQL RPMs whenever Red Hat releases updates, this could automatically break thousands of servers within a few hours. For this reason, cPanel, L.L.C. always builds Apache and PHP with the
You can use MySQL version 5.7 or 8.0 on Amazon Relational Database™ Service (RDS) servers. We do not support MariaDB on Amazon RDS servers.
The following versions of MySQL are available:
If you currently run MySQL 5.6 or earlier and you wish to upgrade to MySQL 8.0, you must first upgrade to MySQL 5.7.
MySQL 8.0 is the only database service and version that cPanel & WHM version 98 supports for Ubuntu® 20.04.
cPanel & WHM version 98 for Ubuntu 20.04 LTS is experimental software and we do not recommend using it in production environments. For more information, read our cPanel & WHM version 98 for Ubuntu 20.04 LTS documentation.
The following versions of MariaDB are available:
On CloudLinux 6, MariaDB 10.5 is only available using the MySQL Governor packages. For more information, read the CloudLinux documentation.
Upgrade or reinstall MySQL or MariaDB
To upgrade or reinstall your server’s version of MySQL or MariaDB, perform the following steps:
Select the version of MySQL or MariaDB that you wish to upgrade.Note:To reinstall your database, select your current version of MySQL or MariaDB.Warning:
However, system administrators can choose either MySQL or MariaDB during the cPanel & WHM installation process. For more information, read our Installation Guide.
Click Continue. A new interface will appear with warning messages about the upgrade process.Note:The system validates the
/etc/my.cnffile during the upgrade.
If you are upgrading your database server from MySQL version 5.7 to 8, the Upgrade Checker via MySQLShell (optional) section will appear. This utility checks whether the upgrade will work on the MySQL configuration file and table engine. To run the MySQL Upgrade Checker utility, click Install and Run Checker. A progress window will appear, and it will display the results of the upgrade check.
- You can resolve any issues that appear in the results and click Re-Run Checker to run the MySQL Upgrade Checker utility again.
Select the checkbox next to each warning to acknowledge that you are aware of the potential consequences of the upgrade.
Select the type of upgrade that you wish to perform:
Unattended Upgrade — This option automatically upgrades MySQL or MariaDB.
Interactive Upgrade — This option steps you through the MySQL or MariaDB upgrade process.
Click Continue. The upgrade process interface will appear.
Select or deselect the Autoscroll output checkbox to change whether the output display scrolls as the upgrade runs.
If you selected the Interactive Upgrade type on the previous screen, the interface will prompt you to continue through each step as the upgrade progresses. The interface may also provide instructions for additional tasks that you may need to complete before continuing through the upgrade.
When the upgrade finishes, the interface will display a message. The message will say whether the upgrade succeeded or errors exist that you will need to address to complete the upgrade.
MySQL upgrade log
The system stores the MySQL and MariaDB log files in the
/var/cpanel/logs directory. The log files use the
mysql_upgrade_log.YYYYMMDD-hhmmss naming convention with the following designators:
YYYY— Four-digit year.
MM— Two-digit month.
DD— Two-digit day.
hh— Two-digit hour.
mm— Two-digit minute.
ss— Two-digit second.