The Archive Storage Engine is not enabled by the default build of MySQL in CentOS/RHEL. I would like to enable it on our CentOS 5.4 server. My initial reaction was to modify the SPEC file for the SRPMS file, but this indicates that this might not be that easy. There's always the option to build from MySQL source, but I would prefer if possible to stay within the RPMS/Yum world.
Does anybody have a successful approach to this by using RPMS/SRPMS/Yum? Some patches which makes this work flawless with SRPMS?
I build MySQL with changes to the SPECS file for MySQL and the Archive storage engine got enabled. Here's a detailed step on how to get this up and running:
Install yum-utils:
Include RedHat's SRPMS to the CentOS repos:
Add the following repo configuration:
I could not use
$releasever
in the URL, but had to set to5Server
.Download the SRPMS package:
Set up build area for a non-root user:
Install the required development tools:
To find all the required libraries and tools, just try to the following command:
Modify the spec file:
I added the following in the spec file (I wanted also to include the federated storage engine):
Be aware: This might have changed in MySQL 5.1 where
plugin
is used to specify storage engines.In order to speed up the build process you should consider making this change:
Then run (as non-root user):
You'll find the RPMs in
~/rpmbuild/RPMS/i386
. Just install and run MySQL and you will get a MySQL version with archive storage engine enabled.