Linux – Problems installing PHP 5.4.11 and MySQL 5.6.10 on CentOS 6.3

centosinstallationlinuxMySQLPHP

I'm attempting to install PHP 5.4.11 and MySQL 5.6.10 onto a CentOS 6.3 box.

I've successfully installed PHP 5.4.11 via the remi repository for yum. I've also successfully installed MySQL 5.6.10 using the community server rpm's on the MySQL downloads page.

They both work fine independently, but when attempting to install php-mysql from the remi repository, a dependency of mysql-libs is pulled in which is at version 5.5.30, and going ahead with the install produces an array of errors like the following:

file /usr/share/mysql/czech/errmsg.sys from install of mysql-libs-5.5.30-1.el6.remi.x86_64 conflicts with file from package MySQL-server-5.6.10-1.el6.x86_64

At this point, I'm out of my depth with regards to getting this working. Can anyone suggest what I need to do to get my PHP installation working with MySQL?

Best Answer

Remove the mysql-libs package:

rpm -e --nodeps mysql-libs

then install the MySQL-shared-compat package by running:

rpm -ivh MySQL-shared-compat-5.6.10-1.linux_glibc2.5.x86_64.rpm

and try to install php-mysql again.