Install MySQL Server on CentOS

This quick tutorial will describe how to install MySQL on your CentOS 5 or CentOS 6 server.

MySQL server and MySQL client are available from the standard CentOS repository.

1. Install MySQL server and MySQL client
yum install mysql-server mysql
2. Start the MySQL service
/etc/init.d/mysql start
 3. Run MySQL secure installation
/usr/bin/mysql_secure_installation

Accept the defaults for all options, and set the root password when prompted.

4. Make sure MySQL auto-starts upon a reboot
chkconfig mysqld on

[line]

Install MySQL Server on CentOS Video Tutorial:

Share This Post

About Author: Curtis K

Hi! My name is Curtis, and I am the author of CentOS Blog. Please feel free to comment with any suggestions, feedback or questions!