Zabbix Error Sock Error

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.