Mysql学习笔记

1、Ubuntu下mysql无法启动Couldn't find MySQL server (/usr/bin/mysqld_safe)”

貌似是my.cnf设置有问题,删了用默认的就好了,下次再打开不了mysql(提示什么mysql.sock之类的),

多半是mysql服务没有打开,/usr/local/mysql/support-files/mysql.server start。


2、:error while loading shared libraries: libmysqlclient.so.18: cannot open shared object file: No such file or directory

a.先确认/usr/local/mysql/lib/下是否有libmysqlclient.so.18这个文件.
ll /usr/local/mysql/lib/|grep libmysqlclient.so.18

b.修改ld.so.conf文件
echo "/usr/local/mysql/lib" >>/etc/ld.so.conf

然后执行ldconfig使其生效.

你可能感兴趣的:(数据库)