数据库
首页 > 数据库> > MySQL 报错

MySQL 报错

作者:互联网

mysql: error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file: No suc h file or directory

ldconfig -v | grep mysql
locate libmysqlclient.so
yum install mysql-devel mysql-libs

ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2)
service mysqld start mysqld: 未被识别的服务

安装yum install mysql-server
service mysqld start
问题解决

标签:file,service,MySQL,mysqld,libmysqlclient,mysql,报错
来源: https://blog.csdn.net/weixin_45452611/article/details/97257798