标题: zabbix连接不上mysql [打印本页] 作者: oushitianxia915 时间: 2016-05-17 18:17 标题: zabbix连接不上mysql 8705:20160517:181535.420 [Z3001] connection to database 'zabbix' failed: [2003] Can't connect to MySQL server on 'host' (13)
8705:20160517:181535.420 database is down: reconnecting in 10 seconds
# mysql -u zabbix -p'zabbix'
mysql: [Warning] Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 8
Server version: 5.7.12 MySQL Community Server (GPL)
Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
show grants for zabbix@host;
+---------------------------------------------------------------------+
| Grants for zabbix@host |
+---------------------------------------------------------------------+
| GRANT ALL PRIVILEGES ON *.* TO 'zabbix'@'host' WITH GRANT OPTION |
+---------------------------------------------------------------------+
1 row in set (0.00 sec) 作者: oushitianxia915 时间: 2016-06-14 17:02 回复 2# expert1