一、贴上报错
二、提示缺少libmysqlclient.so.18()(64bit)
三、查询libmysqlclient.so,维度缺少libmysqlclient.so.18
[root@localhost php]# find / -name libmysqlclient.so* /usr/lib64/mysql/libmysqlclient.so.20 /usr/lib64/mysql/libmysqlclient.so.20.3.9 /usr/lib64/mysql/libmysqlclient.so /usr/lib64/libmysqlclient.so /usr/lib64/libmysqlclient.so.12 /usr/lib64/libmysqlclient.so.14 /usr/lib64/libmysqlclient.so.15 /usr/lib64/libmysqlclient.so.16 /usr/lib64/libmysqlclient.so.12.0.0 /usr/lib64/libmysqlclient.so.14.0.0 /usr/lib64/libmysqlclient.so.15.0.0 /usr/lib64/libmysqlclient.so.16.0.0 [root@localhost php]#
四、参考http://blog.sina.com.cn/s/blog_462db1960102wzxb.html博客,检查到没有安装mysql-community-libs-compat-5.7.22-1.el7.x86_64.rpm。
五、到mysql官网下载:https://downloads.mysql.com/archives/community/
---------------------
作者:ckg8933
来源:CSDN
原文:https://blog.csdn.net/ckg8933/article/details/83379279
版权声明:本文为博主原创文章,转载请附上博文链接!
[root@localhost ~]# wget https://downloads.mysql.com/archives/get/file/mysql-community-libs-compat-5.7.22-1.el7.x86_64.rpm
六、安装mysql-community-libs-compat-5.7.22-1.el7.x86_64.rpm。
[root@localhost ~]# rpm -ivh mysql-community-libs-compat-5.7.22-1.el7.x86_64.rpm
七、重新安装php-mysql
[root@localhost ~]# yum install php-mysql -y
评论专区