gpt4 book ai didi

php - Zabbix浏览时出错: "Configuration file error DB type "MYSQL"is not supported by current setup.”

转载 作者:行者123 更新时间:2023-11-29 18:02:20 24 4
gpt4 key购买 nike

这是在我将服务器从 Ubuntu 14.04 升级到 Ubuntu 16.04.2 LTS 后发生的。

Mysql 服务正在运行,我可以使用 zabbix conf 文件中的 mysql 帐户连接到 zabbix DB,并显示表和这些表中的信息。

zabbix_server.log中的错误是:

[Z3001] connection to database 'zabbix' failed: [2002] Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)"

ls -l /var/run/mysqld/
total 4
-rw-rw---- 1 mysql mysql 5 Jan 12 10:42 mysqld.pid
srwxrwxrwx 1 mysql mysql 0 Jan 12 10:42 mysqld.sock

任何帮助将不胜感激。

最佳答案

你配置了zabbix_server.conf吗?检查此参数:

  • 数据库密码
  • 数据库名称
  • 数据库主机
  • 数据库用户

来源:https://www.zabbix.com/documentation/3.4/pt/manual/appendix/config/zabbix_server

关于php - Zabbix浏览时出错: "Configuration file error DB type "MYSQL"is not supported by current setup.”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48224771/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com