zabbix启动报错connection to database 'zabbixdb' failed: [2002] Can't connect to local MySQL server through socket

[Z3001] connection to database 'zabbixdb' failed: [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' 


先是修改zabbix_server.conf

DBSocket=/tmp/mysql.sock #这个路径改成mysql的路径 不过发现改了后还是报错


mkdir /var/lib/mysql

ln -s /tmp/mysql.sock /var/lib/mysql/mysql.sock


Tags linux apache

留言(0)

评论