2

I wanted to install mysql-server on CentOS 6.6 (64bit). When I run yum install mysql-server, I get the following error:

root@ip-50-62[/home/syn]# yum install mysql-server
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: p3plmirror02.prod.phx3.secureserver.net
 * extras: p3plmirror02.prod.phx3.secureserver.net
 * jpackage-generic: ftp.heanet.ie
 * jpackage-generic-updates: ftp.heanet.ie
 * rpmforge: mirror.hmc.edu
 * updates: p3plmirror02.prod.phx3.secureserver.net
No package mysql-server available.
Error: Nothing to do

How do I install it?

2 Answers 2

1

Solved the problem myself. File /etc/yum.com had mysql* excluded. I removed mysql* for some period of time & installed it. I got installed like a charm. Now putting back the mysql* in exclude.

Hope that helps someone!

1
  • What is /etc/yum.com means ? It is /etc/yum.conf right ?
    – max
    Apr 27, 2015 at 16:22
0

It seems that MySQL is no longer a part of the repo in CentOS 7, but you are using CentOS 6.6. If you want to go down the MariaDB route, many online postings—like this one at Digital Ocean—point to using MariaDB as a drop-in substitute for MySQL and recommend just installing MariaDB instead via this command:

sudo yum install mariadb-server mariadb

But doing some more searching shows that MySQL can still be installed via this command as explained in this posting on installing MySQL 5.6 Fedora, CentOS and RedHat:

sudo yum install mysql-community-server

One thing you can always do with yum is search the repository for packages that have a certain name or contain certain words like this:

yum search mysql*

Which should give you a list of any/all packages in the repository that contain that word in it.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .