我在我的日志中发现了这个错误:
relocation error: /usr/lib64/libmyodbc5.so: symbol strmov, version libmysqlclient_16 not defined in file libmysqlclient_r.so.16 with link time reference
yum 错误日志
yum install mysqlclient16
...
184 packages excluded due to repository priority protections
Setting up Install Process
Package mysqlclient16 is obsoleted by mysql-libs, trying to install mysql-libs-5.1.59-1.el6.art.x86_64 instead
Package matching mysql-libs-5.1.59-1.el6.art.x86_64 already installed.
Checking for update.
Nothing to do
我在由以下服务器驱动的服务器上使用了最新的 mysql 版本 (mysql-5.1.59-1.el6.art.x86_64) 的 atomicrepoCentOS6。
--
Plesk:此错误在 Plesk 10.3 > Application Vault 中也显示为“错误 500”
--
编辑:我已发布我的解决方案作为回应,也许有人会需要它
答案1
我遇到了同样的错误,通过安装 mysql-libs 已修复。
yum install mysql-libs
答案2
你的 mysql-packages 似乎已被破坏或配置错误(我认为这只发生在 centos6 上)
现在我建议您转储所有数据库,例如:
# mysqldump -uadmin -p`cat /etc/psa/.psa.shadow` --all-databases > /root/mysql.full.dump
然后卸载所有 MySQL 相关的包:
# rpm -qa | grep mysql # rpm -e --nodeps `rpm -qa | grep mysql`
在 /etc/yum.repos.d 中禁用 atomic-repo
enabled = 0
清理 yum:
# yum clean all
然后使用自动安装程序并安装它们:
# /usr/local/psa/admin/bin/autoinstaller ... Next > Next > Next: 11 [x] MySQL server support
再次启动 MySQL-Daemon
# service mysqld start
此后您可以恢复数据库:
# mysql -uadmin -p`cat /etc/psa/.psa.shadow` < /root/mysql.full.dump
不要忘记重新启用 atomic-yum 存储库 - 尽情享受吧!
答案3
Debian 6.0.4 中使用 plesk 时出现同样的问题
websrvmng: /opt/psa/admin/bin/httpdmng execution failed:
/usr/bin/sw-engine: relocation error: /usr/bin/sw-engine: symbol __cxa_pure_virtual, version libmysqlclient_16 not defined in file libmysqlclient.so.16 with link time reference
websrvmng: /opt/psa/admin/bin/httpdmng execution failed:
/usr/bin/sw-engine: relocation error: /usr/bin/sw-engine: symbol __cxa_pure_virtual, version libmysqlclient_16 not defined in file libmysqlclient.so.16 with link time reference
通过安装 libmysqlclient16 修复
apt-get install libmysqlclient16