Upgrading to MySQL 5.0.33 on RHEL and CentOS
If you follow the MySQL Announcement list then you already know that version 5.0.33 was just released. Unfortunately, those of you on RHEL/CentOS (and even Fedora, at least for the time being) do not have any way to install it unless you compile from the tar.gz source because MySQL has decided to only regularly release binaries to those that pay them for the Enterprise version. Compiling from source, by the way, is something that MySQL does NOT recommend that you do, even though, at current, this is the only option that they give you. Funny, isn't it?
That said, I've taken a slightly different approach to this tutorial as compared to my "Upgrade to MySQL 5.0.27" tutorial. That how-to dealt with rebuilding the src.rpm from the FC7 development tree so that it would work on RHEL & CentOS 4. This how-to uses the spec file from the official MySQL src.rpm for 5.0.27, upgrades the source to 5.0.33, and then adapts it so that it generates RH/Fedora-style RPMs for an easy upgrade.
The complete list of changes I made are as follows:
- Upgraded sources from 5.0.27 to 5.0.33.
- Modified package names to match those used by the RH/Fedora-supplied packages (mysql, mysql-server, etc. instead of MySQL-client, MySQL-server, etc.).
- Renamed init script and logrotate script to "mysqld" from "mysql" to match the RH/Fedora names.
- Merged the "MySQL-client" and "MySQL-shared" packages into "mysql" to match what is provided by RH/Fedora.
- Added two "installed but abandoned" binaries and two help files into the "mysql-server" package (not sure why these are left behind but the RH/Fedora packages normally have them).
- Removed all of the "Pro" and "Commercial" conditionals to clean things up a bit.
As you can imagine, there are far too many spec file changes to list them all and to give a how-to from beginning to end. As such, I'm just going to provide a src.rpm file that you can rebuild on your own. I've also included the i386 binaries for those that are are looking for the easy route (x86_64 users will need to build from the src.rpm).
Update (9/24/2009): Packages deleted, use the yum repository instead.
Digg this story