"No package mysql-server available" on new CentOS 7 64-bit installation...?

July 20, 2014 43.7k views

I have successfully started a CentOS 7 64bit droplet on the Singapore node and have SSH access. I’ve installed Apache as per the install LAMP tutorial but when installing mysql I get an error
No package mysql-server available. Error: Nothing to do.

I’ve tried cleaning the Yum repository cache to no avail. It has picked up the repos.lax.quadranet.com and linux.mirrors.es.net as the fastest mirrors and both give this error.
Any suggestions? Thanks in advance.

1 comment
  • OK, I just spotted the response that said there is no mysql package for CentOS 7 right now (20 July 2014). Guess I’ll downgrade to 6.5.

3 Answers

Right. CentOS 7 (as well as RHEL 7) does not include MySQL. It instead ships MariaDB which a drop in replacement. You can install it with:

sudo yum install mariadb-server mariadb

Are you sure that mysql cant be installed on centos 7 ?

Have another answer? Share your knowledge.