MySQL登陆时提示找不到到libmysqlclient.so.15

在登录Mysql 时 提示这个错误:./mysql: error while loading shared libraries: libmysqlclient.so.15: cannot open shared object file: No such file or directory解决办法:

vi /etc/ld.so.conf 增加一行 你的数据库路径 如(/usr/local/mysql) 然后执行ldconfig生效。或者可以尝试 /usr/local/mysql/lib/mysql/libmysqlclient.so.15 /usr/lib/libmysqlclient.so.15