mysql客户端提示libmysqlclient.so.16丢失
libmysqlclient 是 MySQL 的 C 语言客户端库,它提供了应用程序与 MySQL 数据库进行交互的接口。这个库包含了用于连接、查询、更新和管理 MySQL 数据库的函数
解决
//错误
[root@upday mysql]# mysql
mysql: error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file: No such file or directory
[root@upday mysql]# service mysqld start
/usr/bin/mysqladmin: error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file: No such file or directory
Cannot check for MySQL Daemon startup because of mysqladmin failure.
Starting mysqld: [FAILED]
//分析
mysql-libs软件包文件异常导致的,只需要卸载在安装即可
//解决
# 卸载
yum remove mysql-libs
# 安装
yum install -y mysql-libs //centos
apt-get install libmysqlclient-dev //ubuntu