How to install mysql on centOS

Here we introduce a simple way to install mysql on centOS:

You can use code below to install

yum install mysql mysql-server mysql-libs

There are some information about mysql,mysql-server and mysql-libs

mysql for the client tools

mysql-server for the server and associated tools

mysql-libs for the libraries. The libraries are required if you want to provide connectivity from different languages and environments such as Perl, Python and others.

After installing, you can use code below to start mysql service:

root-shell> service mysqld start

and if you want to make mysql service auto-run when turn on centOS, you can do like this:

root-shell> chkconfig --levels 235 mysqld on