Installing MySQL 4.1 on Fedora Core 2 (tummy.com, ltd. Journal Entry)
tummy.com: we do linux

Wednesday November 17, 2004 at 13:15
Subject: Installing MySQL 4.1 on Fedora Core 2
Keywords: Fedora Core 2, Linux, MySQL, Technical, yum
Posted by: Scott Kleihege

We've been getting requests to setup the latest and greatest MySQL server (4.1) recently. As of this time, Red Hat Fedora Core 1, 2 and 3 use MySQL version 3. The fresh installation of MySQL 4.1 on Fedora systems is pretty painless.

The systems I've setup this way have all been Fedora Core 2 systems, but I would expect luck with the same steps on Fedora Core 1 or 3. The Linux x86 RPM downloads from the MySQL site, have all installed beautifully. I've been using the server, client programs, libraries and header files, dynamic client libraries and dynamic client libraries (including 3.23.x libraries) without any problems.

Caveat: the PHP rpms that come with fedora don't like integrating with MySQL 4. Downloading the PHP source RPMs and running `rpmbuild --rebuild` on them after MySQL 4 is installed will link them against the proper libraries and the resulting rpms will install happily. I've also been adding 'mysql*' and 'php*' to the /etc/yum.conf exclude line to prevent yum from stomping over the packages if a new version of PHP or MySQL-3 is released. Of course, we'll have to watch the packages manually for updates. An portion of the yum.conf is below:

[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
exclude=mysql* php*
retries=20

(Post Reply)
Comment
Author: tim kennedy
Subject: thanks for the tips
Thanks for the tips with excluding packages from yum, and building your own from the source rpms.
Comment
Julien
Subject: no need to rebuild the php rpm
Hi, Thanks a lot for the tip. Actually you don't need to recompile php thanks a an rpm available on the mysql website containing the old libmysqlclient libs: http://dev.mysql.com/get/Downloads/MySQL-4.1/MySQL-shared-compat-4.1.9-0.i386.rpm/from/pick I don't know if it was available at the time you wrote this article though... Julien.
Comment
Adam Grandt
Subject: Its not there any more.
Said RPM with both libraries is available from HERE