Tail Var/log/zabbix/zabbix_server
Mysql_connect (): Can ' tconnect to local MySQL server through socket '/var/lib/mysql/mysql.sock ' (2) [include/db.inc.php : 77]error Connecting to database [Can ' t connect to Localmysql server through socket '/var/lib/mysql/mysql.sock ' (2)]
appear sock problem Sock [2002]
Change the configuration file /etc/my.cnf
[Mysqld]
Port = 3306
Socket =/var/lib/mysql/mysql.sock
Skip-locking
Key_buffer_size = 256M
DataDir =/data/mysql
Max_allowed_packet = 1M
Table_open_cache = 256
Sort_buffer_size = 1M
Read_buffer_size = 1M
Read_rnd_buffer_size = 4M
Myisam_sort_buffer_size =64m
Thread_cache_size = 8
Query_cache_size= 16M
in /etc/zabbix/zabbix_server.conf under the sock path is the correct path
Dbsock =/var/lib/mysql/mysql.sock
This article is from the "Learn Linux" blog, so be sure to keep this source http://10265013.blog.51cto.com/10255013/1715741
Zabbix Error Sock Error