Published July 30th, 2006 by Jim O'Halloran
MySQL 5 on CentOS
I did a “yum update” on my CentOS box the other day and discovered MySQL 5 packages in the CentOS Plus repository! So if you’re after PHP 5 or MySQL 5 for your CentOS box enable the CentOSPlus repository as described in my earlier port. I’m using MySQL 5 on my laptop (FC5), and I’ll probably migrate my CentOS server to it eventually.
For now though, I’m not interested in re-testing everything that’s running on my server against a new MySQL, so I’d rather stick with version 4 as it ships with CentOS. I still want PHP5 from CentOSPlus though, but not MySQL5. To make this happen, I added the following line to the bottom of the [centosplus] section of /etc/yum.repos.d/CentOS-Base.repo…
exclude=mysql mysql-server mysql-client mysql-devel
This causes yum to ignore the named packages in the CentOSPlus repository. This works well for me so far. Later when I want to upgrade to MySQL 5 I’ll just need to remove that line (or comment it out).
Josh Hall Says
Wow. I’m new to the CentOS scene, but this is great.
Jan 8th, 2008 at 11:30 am
tom3k Says
be careful when doing that..
the reason those are probably excluded is because you are running cpanel…. and this could break things on the cpanel end.
Sep 18th, 2009 at 1:26 pm