{"id":1010,"date":"2021-07-23T12:43:22","date_gmt":"2021-07-23T12:43:22","guid":{"rendered":"https:\/\/ssdsunucum.com\/blog\/mysql-mariadb-upgrade\/"},"modified":"2021-07-23T12:43:22","modified_gmt":"2021-07-23T12:43:22","slug":"mysql-mariadb-upgrade","status":"publish","type":"post","link":"https:\/\/ssdsunucum.com\/blog\/mysql-mariadb-upgrade\/","title":{"rendered":"MySQL\/MariaDB Upgrade"},"content":{"rendered":"<\/p>\n<div class=\"col-md-9\">\n<div class=\"flex-column flex-md-row article-header\">\n<div id=\"versioned-article-header\">\n<p class=\"valid-version-info\"><em>Valid for versions 98 through the latest version<\/em><\/p>\n<\/div>\n<div id=\"version-select-group\" aria-label=\"select versions\">\n<h4>Version:<\/h4>\n<h4>82<\/h4>\n<h4>88<\/h4>\n<h4>90<\/h4>\n<h4>92<\/h4>\n<h4>96<\/h4>\n<h4>98<\/h4>\n<\/div><\/div>\n<hr>\n<h2 id=\"overview\">Overview<\/h2>\n<p>This interface allows you to manage MySQL\u00ae or MariaDB\u00ae 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.<\/p>\n<div class=\"callout callout-danger\">\n<div class=\"callout-heading\">Warning:<\/div>\n<div class=\"callout-content\">\n<ul>\n<li>\n<p>We <strong>strongly<\/strong> recommend that you back up your database before you upgrade your database or change to MariaDB.<\/p>\n<\/li>\n<li>\n<p>This feature does not support downgrades of database engine versions. We <strong>strongly<\/strong> recommend that you do not attempt to downgrade MySQL or MariaDB.<\/p>\n<\/li>\n<li>\n<p>The system considers MariaDB to be an upgrade from MySQL. If you change the database engine to MariaDB, you <strong>cannot<\/strong> change back to MySQL.<\/p>\n<\/li>\n<li>\n<p>You <strong>cannot<\/strong> upgrade MySQL 8 to MariaDB 10.x due to incompatibilities between these versions. For more information, read MariaDB\u2019s documentation. However, system administrators can change databases from MySQL 8 to MariaDB 10.3 during the cPanel &#038; WHM version 92 installation process. For more information, read our Installation Guide.<\/p>\n<\/li>\n<li>\n<p>If CloudLinux\u2019s\u2122 MySQL Governor exists on your server, MySQL upgrades will <strong>not<\/strong> work via this interface. If you wish to remove MySQL Governor, read CloudLinux\u2019s MySQL Governor documentation and research how this affects you.<\/p>\n<\/li>\n<li>\n<p>We do <strong>not<\/strong> support the use of MySQL\u2019s sha256_password plugin for MySQL 5.7, MySQL 8, MariaDB 10.2, or MariaDB 10.3.<\/p>\n<\/li>\n<li>\n<p>The <code>phpinfo<\/code> file may display a different version of MySQL than the version that you select.<\/p>\n<ul>\n<li>\n<p>The API version that you see in the <code>phpinfo<\/code> file is the built-in MySQL API that PHP includes.<\/p>\n<\/li>\n<li>\n<p>If the <code>buildapache<\/code> application uses the MySQL libraries and headers on the server itself, and you change the MySQL version, Apache cannot function correctly. Because cPanel &#038; 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 <code>-builtin<\/code> option.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>You can use MySQL version 5.7 or 8.0 on Amazon Relational Database\u2122 Service (RDS) servers. We do <strong>not<\/strong> support MariaDB on Amazon RDS servers.<\/p>\n<\/li>\n<\/ul><\/div>\n<\/div>\n<h2 id=\"available-versions\">Available versions<\/h2>\n<p>The following versions of MySQL are available:<\/p>\n<ul>\n<li>\n<p>MySQL 5.7<\/p>\n<\/li>\n<li>\n<p>MySQL 8.0<\/p>\n<\/li>\n<\/ul>\n<div class=\"callout callout-info\">\n<div class=\"callout-heading\">Note:<\/div>\n<div class=\"callout-content\">\n<p>If you currently run MySQL 5.6 or earlier and you wish to upgrade to MySQL 8.0, you <strong>must<\/strong> first upgrade to MySQL 5.7.<\/p>\n<\/p><\/div>\n<\/div>\n<div class=\"callout callout-warning\">\n<div class=\"callout-heading\">Important:<\/div>\n<div class=\"callout-content\">\n<ul>\n<li>\n<p>MySQL 8.0 is the <strong>only<\/strong> database service and version that cPanel &#038; WHM version 98 supports for Ubuntu\u00ae 20.04.<\/p>\n<\/li>\n<li>\n<p>cPanel &#038; WHM version 98 for Ubuntu 20.04 LTS is <strong>experimental<\/strong> software and we do <strong>not<\/strong> recommend using it in production environments. For more information, read our cPanel &#038; WHM version 98 for Ubuntu 20.04 LTS documentation.<\/p>\n<\/li>\n<\/ul><\/div>\n<\/div>\n<p>The following versions of MariaDB are available:<\/p>\n<ul>\n<li>\n<p>MariaDB 10.2<\/p>\n<\/li>\n<li>\n<p>MariaDB 10.3<\/p>\n<\/li>\n<li>\n<p>MariaDB 10.5<\/p>\n<\/li>\n<\/ul>\n<div class=\"callout callout-danger\">\n<div class=\"callout-heading\">Warning:<\/div>\n<div class=\"callout-content\">\n<p>On CloudLinux 6, MariaDB 10.5 is only available using the MySQL Governor packages. For more information, read the CloudLinux documentation.<\/p>\n<\/p><\/div>\n<\/div>\n<h2 id=\"upgrade-or-reinstall-mysql-or-mariadb\">Upgrade or reinstall MySQL or MariaDB<\/h2>\n<p>To upgrade or reinstall your server\u2019s version of MySQL or MariaDB, perform the following steps:<\/p>\n<ol>\n<li>\n<p>Select the version of MySQL or MariaDB that you wish to upgrade. <\/p>\n<div class=\"callout callout-info\">\n<div class=\"callout-heading\">Note:<\/div>\n<div class=\"callout-content\">\n        To reinstall your database, select your current version of MySQL or MariaDB.\n    <\/div>\n<\/div>\n<div class=\"callout callout-danger\">\n<div class=\"callout-heading\">Warning:<\/div>\n<div class=\"callout-content\">\n<p>You <strong>cannot<\/strong> upgrade MySQL 8 to MariaDB 10.x due to incompatibilities between these versions. For more information, read MariaDB\u2019s documentation.<\/p>\n<p>However, system administrators can change databases from MySQL 8 to MariaDB 10.3 during the cPanel &#038; WHM version 92 installation process. For more information, read our Installation Guide.<\/p>\n<\/p><\/div>\n<\/div>\n<\/li>\n<li>\n<p>Click <em>Continue<\/em>. A new interface will appear with warning messages about the upgrade process. <\/p>\n<div class=\"callout callout-info\">\n<div class=\"callout-heading\">Note:<\/div>\n<div class=\"callout-content\">\n        The system validates the <code>\/etc\/my.cnf<\/code> file during the upgrade.\n    <\/div>\n<\/div>\n<\/li>\n<li>\n<p>If you are upgrading your database server from MySQL version 5.7 to 8, the <em>Upgrade Checker via MySQLShell (optional)<\/em> section will appear. This utility checks whether the upgrade will work on the MySQL configuration file and table engine. To run the <em>MySQL Upgrade Checker<\/em> utility, click <em>Install and Run Checker<\/em>. A progress window will appear, and it will display the results of the upgrade check.<\/p>\n<ul>\n<li>You can resolve any issues that appear in the results and click <em>Re-Run Checker<\/em> to run the <em>MySQL Upgrade Checker<\/em> utility again.<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>Select the checkbox next to each warning to acknowledge that you are aware of the potential consequences of the upgrade.<\/p>\n<\/li>\n<li>\n<p>Click <em>Continue<\/em>.<\/p>\n<\/li>\n<li>\n<p>Select the type of upgrade that you wish to perform:<\/p>\n<ul>\n<li>\n<p><em>Unattended Upgrade<\/em> \u2014 This option automatically upgrades MySQL or MariaDB.<\/p>\n<\/li>\n<li>\n<p><em>Interactive Upgrade<\/em> \u2014 This option steps you through the MySQL or MariaDB upgrade process.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>Click <em>Continue<\/em>. The upgrade process interface will appear.<\/p>\n<ul>\n<li>\n<p>Select or deselect the <em>Autoscroll output<\/em> checkbox to change whether the output display scrolls as the upgrade runs.<\/p>\n<\/li>\n<li>\n<p>If you selected the <em>Interactive Upgrade<\/em> 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.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>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.<\/p>\n<\/li>\n<\/ol>\n<h2 id=\"mysql-upgrade-log\">MySQL upgrade log<\/h2>\n<p>The system stores the MySQL and MariaDB log files in the <code>\/var\/cpanel\/logs<\/code> directory.  The log files use the <code>mysql_upgrade_log.YYYYMMDD-hhmmss<\/code> naming convention with the following designators:<\/p>\n<ul>\n<li>\n<p><code>YYYY<\/code> \u2014 Four-digit year.<\/p>\n<\/li>\n<li>\n<p><code>MM<\/code> \u2014 Two-digit month.<\/p>\n<\/li>\n<li>\n<p><code>DD<\/code> \u2014 Two-digit day.<\/p>\n<\/li>\n<li>\n<p><code>hh<\/code> \u2014 Two-digit hour.<\/p>\n<\/li>\n<li>\n<p><code>mm<\/code> \u2014 Two-digit minute.<\/p>\n<\/li>\n<li>\n<p><code>ss<\/code> \u2014 Two-digit second.<\/p>\n<\/li>\n<\/ul><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Valid for versions 98 through the latest version Version: 82 88 90 92 96 98 Overview This interface allows you to manage MySQL\u00ae or MariaDB\u00ae 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 &hellip;<\/p>\n","protected":false},"author":1,"featured_media":1011,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/posts\/1010"}],"collection":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/comments?post=1010"}],"version-history":[{"count":0,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/posts\/1010\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/media\/1011"}],"wp:attachment":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/media?parent=1010"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/categories?post=1010"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/tags?post=1010"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}