Yum installing wrong MySQL version on CentOS 5 (Amazon)

Posted by Marius Stuparu on Server Fault See other posts from Server Fault or by Marius Stuparu
Published on 2012-12-18T15:22:04Z Indexed on 2012/12/18 17:04 UTC
Read the original article Hit count: 418

I'm having trouble with a CentOS server running on AWS. This is CentOS 5.6 i386 from RightImage, but the problem was the same on all RightScale AMIs.

When issuing the following command:

yum install mysql mysql-server mysql-devel

the only packages proposed by yum are MySQL-devel-community and MySQL-server-community. Which would't be a problem, except this package is old/incomplete, because it does not create a "mysqld" service, only a /etc/init.d/mysql (notice the missing d). That would't be a problem, I can start the service by doing ./etc/init.d/mysql start, and it starts OK, but there is no "mysql" (or other mysql*) command available.

If I try to force a different version (yum install mysql50-server...) I get this yum error:

mysql-5.0.77-4.el5_6.6.i386 from updates has depsolving problems
--> mysql conflicts with MySQL-server-community

(even when I don't have MySQL-server-community installed).

I have tried this before and after yum update, in a fresh image.

How can I install a working version of MySQL? I'm stuck on CentOS 5 because I want to install Kloxo (which does not yet support CentOS 6). I'm not interested in Webmin, and I can't afford cPanel.

Thanks!

© Server Fault or respective owner

Related posts about mysql

Related posts about centos