Change MySQL version

Navigation:  MySQL Governor >

Change MySQL version

Previous pageReturn to chapter overviewNext page

If you would like to change to a different MySQL version, or switch to MariaDB you have to start by backing up existing databases.

 

IMPORTANT: Please make full database backup (including system tables) before you will do upgrade of MySQL or switch to MariaDB. This action will prevent data losing in case if something goes wrong.

 

$ /usr/share/lve/dbgovernor/db-select-mysql --mysql-version=MYSQL_VERSION
$ /usr/share/lve/dbgovernor/mysqlgovernor.py --install

* If you are using cPanel or DirectAdmin -- recompile apache

 

To install beta version of MySQL:

$ /usr/share/lve/dbgovernor/mysqlgovernor.py --install-beta

 

 

MYSQL_VERSION can be one of the following:

auto

default version of MySQL for given OS release (or cPanel settings)

mysql50

MySQL v5.0

mysql51

MySQL v5.1

mysql55

MySQL v5.5

mysql56

MySQL v5.6

mysql57

MySQL v5.7

mariadb55

MariaDB v5.5

mariadb100

MariaDB v10.0

mariadb101

MariaDB v10.1

 

* We don't recommend to downgrade from MySQL v5.6, MariaDB 10.x

 

Note. cPanel does not support natively MySQL 5.7:

 

1. https://features.cpanel.net/topic/add-support-for-mysql-5-7

2. https://forums.cpanel.net/threads/mysql-5-7-support.502071/

 

You can use MySQL 5.7 with cPanel only on your own risk!