Dependency handling error when installing MySQL 5.6 on CentOS 6.5

I made an article here for installing MySQL 5.6 on CentOS.

But when I run: sudo yum install mysql-community-server

I see the following errors:

Error: Package: mysql-community-server-5.6.20-4.el7.x86_64 (mysql56-community)
       Requires: systemd
Error: Package: mysql-community-server-5.6.20-4.el7.x86_64 (mysql56-community)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest


In fact, no matter how I do yum install mysql mysql-server, I get the same errors. I searched the web but lack of resources mentioned what is wrong with "systemd" and "libstdc ++. So.6" and how to fix it.


source to share

2 answers


yum install openssh-server wget
yum -y update


List your repositories and remove mysql-community...

yum repolist


Install nessary repos:

rpm -ihv
rpm -ihv
rpm --import
rpm -ivh
yum install yum-priorities


Add priority=10

to these files:

vi /etc/yum.repos.d/epel.repo
vi /etc/yum.repos.d/nginx.repo
vi /etc/yum.repos.d/remi.repo


And from a fresh installation of the repository it will be good:

yum install mysql mysql-server


Then you can:

chkconfig --levels 235 mysqld on
service mysqld start




for each of the libraries you can't find just do "yum provides" for it, then install the package


yum provides systemd
yum provides


then what yum install systemd libstdc++

you would do, you might need to do yum install libstdc++-<version>

depending on the search results.



All Articles