The following tutorial explains how to install MySQL on CentOS 6 using the YUM package manager, these instructions should also work with CentOS 4 & 5. CentOS install MySQL via YUM
Enter the following command to install the MySQL Server and client RPM’s via YUM:
Start MySQL on CentOS:
Add MySQL to start at boot type the following
MySQL will now be installed and running on your CentOS server, don’t forget to set the MySQL root password !