CentOS Linux 5/6 Install Mysql Database Server

How do I install MySQL database server on CentOS Linux version 5 or version 6 using command line options? How do I configuring MySQL server on CentOS Linux? You need to install the following packages on CentOS Linux:

mysql-server : The MySQL server and related files

mysql : MySQL client programs and shared libraries

Additionally, you may need to install the following packages to access mysql using various programming languages:

Set the root user password

The root user is mysql admin user. By default there is no password assigned to the root user. Use the following command to set a new password for the root user:# mysqladmin -u root password NEWPASSWORD See how to Change/update the root password for mysqld for more information.

Hey, guys. I’m afraid but this is not quite right information, because of the yum installation part. If you do so, you will install ‘mariadb’. I haven’t used it, therefore, I cannot tell you it is good or not, but I can say it’s not MySQL.