当前位置:首页 > 技术文章 > 正文内容

宝塔控制面板配置zabbix连不上数据库

lcy2020-01-16技术文章6686

[root@localhost etc]# tail -f /var/log/zabbix_server.log
1267:20130722:195451.493 [Z3001] connection to database 'zabbix' failed: [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
1267:20130722:195451.493 Database is down. Reconnecting in 10 seconds.
1267:20130722:195501.494 [Z3001] connection to database 'zabbix' failed: [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
1267:20130722:195501.494 Database is down. Reconnecting in 10 seconds.
1267:20130722:195511.494 [Z3001] connection to database 'zabbix' failed: [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
1267:20130722:195511.494 Database is down. Reconnecting in 10 seconds.
1267:20130722:195521.495 [Z3001] connection to database 'zabbix' failed: [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
1267:20130722:195521.495 Database is down. Reconnecting in 10 seconds.
1267:20130722:195531.495 [Z3001] connection to database 'zabbix' failed: [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
1267:20130722:195531.496 Database is down. Reconnecting in 10 seconds.
1267:20130722:195541.496 [Z3001] connection to database 'zabbix' failed: [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
1267:20130722:195541.496 Database is down. Reconnecting in 10 seconds.
1267:20130722:195551.498 [Z3001] connection to database 'zabbix' failed: [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
1267:20130722:195551.498 Database is down. Reconnecting in 10 seconds.



解决办法


[root@localhost tmp]# mkdir /var/lib/mysql

[root@localhost tmp]# ln -s /tmp/mysql.sock /var/lib/mysql/mysql.sock

然后去宝塔重启mysql 或者命令重启/etc/rc.d/init.d/mysqld restart



 

版权声明:本文由cy's Blog发布,如需转载请注明出处。

本文链接:http://www.c3389.com/post/461.html

相关文章

一句话木马及几种可绕过过滤格式

CnCxzSec's BlogASP一句话1.<%eval request("YouPass")%> 2. <%executerequest("YouP...

8603音乐网管理系统 v2009.1001 0day

来源:んㄗ葑訫鎖愛'S Blog8603音乐网管理系统 v2009.1001 数据库可插入一句话和Cookies注入数据库未作任何处理,可以插入一句话。继续插入经典一句话。┼攠數畣整爠煥敵瑳∨&...

超详细的脚本入侵知识总结

什么是脚本 脚本是指全部网页编程语言的一个代名词2.什么是脚本入侵脚本入侵是指利用网页编程语言进行入侵的行为3.什么要学习脚本入侵现在我问你一个问题:你觉得入侵一个网站,也可以说拿下一个服务器,比起入...

又一绕过防火墙的方法

使用Http通道软件可以突破防火墙的限制,利用唯一Http访问的权限获得其他Internet应用。那么什么是通道呢?这里所谓的通道,是指一种绕过防火墙端口屏蔽的通讯方式。 防火墙两端的数据包封装在防火...

导出系统注册表抓Hash

作者:TheLostMind看到一篇文章,渗透中另一种抓系统密码 HASH 的技巧,提到导出注册表永CAIN来破密码,这对很多抓hash的工具被杀了,自己又不会做免杀的大牛来说,是个福音,其实这个很早...

Godaddy域名使用DNSPod做DNS解析图文教程

Godaddy域名使用DNSPod做DNS解析图文教程

 Godaddy.com号称是全球第一大域名注册商,也是广大站长最为熟知的idc之一,非常多的站长选择godaddy注册域名和购买空间,但是毕竟godaddy网站是全英文操作面板,操作也稍显...

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。