Installing MySQL on a CentOS system can be done from the CentOS repositories with yum:
CentOS 6:
yum install mysql mysql-server mysql-devel
CentOS 7:
yum install mariadb mariadb-server mariadb-devel
Be sure to secure the installation with the following command:
mysql_secure_installation
To install a different version of MySQL on a cPanel server you can either select the version in the "MySQL/MariaDB Upgrade" section of WHM or do the following:
1) edit the file "/var/cpanel/cpanel.config" and change the "mysql-version" value to the one desired
2) run the following from the command line "/usr/local/cpanel/scripts/check_cpanel_rpms --fix"
- 1 Users Found This Useful