How to install Mysql


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
Was this answer helpful?

Related Articles

MySQL Optimization / Repair Information

How MySQL Uses MemoryThis page lists some of the ways that the mysqld server uses memory, and...

How can I monitor what my MySQL server is doing?

A handy little Linux application called mytop fits this just perfectly. This is a near-time...

How do I backup MySQL in Linux?

1. Copying from the mysql directoryBy default, MySQL databases on servers that use Linux are...

Repairing MySQL tables that will not open

This should be handled on a case by case basis, but if you are using the default MySQL table type...

Securing MySQL

Due to differing needs and requirements this is difficult to answer except on a case by case...