CentOS - Install MySQL Server

CentOS does not come with MySQL in the repositories. Instead it has switched over to MariaDB. The script below will install MariaDB 5.5 which is extremely similar to MySql 5.5.

sudo yum install mariadb-server -y
sudo systemctl start mariadb
sudo systemctl enable mariadb

Now you can log into your database by entering the mysql command as usual.



Stuart is a software developer with a passion for Linux and open source projects.

comments powered by Disqus
We are a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for us to earn fees by linking to Amazon.com and affiliated sites. More info.