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]