PHP: error while loading shared libraries: libmysqlclient.so.18

[root@root mysql]# /etc/init.d/php-fpm start
php: error while loading shared libraries: libmysqlclient.so.18: cannot open shared object file: No such file or directory

在/usr/lib和/usr/local/mysql/lib目录下都没有找到libmysqlclient.so.18文件,怎么办呢?

解决办法:
ln -s /usr/local/mysql/lib/mysql/libmysqlclient.so.16.0.0 /usr/lib/libmysqlclient.so.18

您可以选择一种方式赞助本站

支付宝转账赞助

支付宝扫一扫赞助