做mysql的slave时间监控,必须check_mysql文字,check当误差: error while loading shared libraries: libmysqlclient.so.18: cannot open shared object file: No such file or directory 1,错误信息例如以下:[root@slave ~]# /usr/local/nagios/libexec/check_mysql -uadmin -P3306 -S /data/
libmysqlclient.so.18: cannot open shared object file 解决libmysqlclient.so.18: cannot open shared object file: no such file or directory failed问题在启动php或者使用其他诸如pt等工具时,提示libmysqlclient.so.18: cannot open shared object file: no such file or directory fail
zabbix3.2启动有如下报错: # service zabbix_server startStarting zabbix_server: /home/zabbix-server/sbin/zabbix_server: error while loading shared libraries: libmysqlclient.so.18: cannot open shared object file: No such file or directory [失败] 解决方法: 查找这个模块的位置
启动zabbix_server时报错: /application/zabbix/sbin/zabbix_server: error while loading shared libraries: libmysqlclient.so.18: cannot open shared object file: No such file or directory 解决办法: [root@test88 etc]# ln -s /application/mysql/lib/libmysqlclient.so.
关于如何查看MySQL版本: 方法一: 进入mysql cmd, status; 1 status; 将显示当前mysql的version的各种信息. 方法二: 还是在mysql的cmd下,输入: select version(); 1 select version(); 查看MySQL端口号: show global variables like 'port'; 1 show global variables like 'port';