Current situation
I'd like to install XtraBackup on my VPS (Centos 5) where my main database is running.
During the rpm install it told me that it misses a dependency called perl(DBD::mysql)
.
When I try to yum install
that dependency, it tells me this:
Error: Missing Dependency: libmysqlclient.so.15(libmysqlclient_15)(64bit) is needed by package perl-DBD-MySQL-3.0007-2.el5.x86_64 (base)
Error: Missing Dependency: libmysqlclient.so.15()(64bit) is needed by package perl-DBD-MySQL-3.0007-2.el5.x86_64 (base)
When I check /usr/lib/mysql
a couple of non existent symlinks called libmysqlclient.so.15 are there. The only working symlinks are libmysqlclient.so
and libmysqlclient_r.so
and they are linked to /usr/lib64/libmysqlclient.so
which is a symlink to libmysqlclient.so.18
.
It seems I only have version 18 installed.
Previous situation
I also installed XtraBackup on another VPS (Centos 6) of mine. Exactly the same error occured there. It at last fixed it by downloading the shared compat 5.1 lib of mysql (MySQL-shared-compat-5.1) which covered different versions of the libs, 12 until 16 I believe.
After that I could install MySQL-shared-compat-5.1
and XtraBackup
nicely. The only problem that remained was that PHP uses the libmysqlclient.so.18
file, and thus the httpd service wouldn't start anymore. I fixed that with a (I think) dirty fix... By just creating a symlink libmysqlclient.so.18 -> libmysqlclient.so.16
. After that apache loaded without problems.
Still it doesn't feel right at all.
I'm not too experienced with most of this stuff, so I hope someone can explain me what the right fix is, to get both Apache and XtraBackup running with their versions of the libmysqlclient, if possible at all.