请教:mysql5.7使用mysqld_exporter监控,报权限问题
使用mysqld_exporter对公司的mysql进行监控,报msg="Error pinging mysqld: Error 1045: Access denied for user 'exporter'@'localhost' (using password: YES)" source="mysqld_exporter.go:268"
mysqld_exporter版本mysqld_exporter-0.10.0.linux-amd64
msyql版本5.7.26
操作步骤:
1,root登陆mysql
2, 新建用户并赋权
GRANT REPLICATION CLIENT, PROCESS ON *.* TO 'exporter'@'localhost' identified by '123456';
GRANT SELECT ON *.* TO 'exporter'@'localhost';
flush privileges;
3,创建.my.cnf文件 vi .my.cnf:
[client]
user=exporter
password=123456
4, 执行nohup ./mysqld_exporter -config.my-cnf=.my.cnf &
结果报错msg="Error pinging mysqld: Error 1045: Access denied for user 'exporter'@'localhost' (using password: YES)" source="mysqld_exporter.go:268"
关键是,使用Mysql-5.6.25的版本采取同样的操作就没问题
5.6版本是自己虚拟机的,5.7的是公司的,总不能改版本吧
从报错上看,应该还是权限的问题,试过'exporter'@'%' 不行,试过user=root也不行,都是报同样的错误
是不是mysql5.7有其他的设置?
mysqld_exporter版本mysqld_exporter-0.10.0.linux-amd64
msyql版本5.7.26
操作步骤:
1,root登陆mysql
2, 新建用户并赋权
GRANT REPLICATION CLIENT, PROCESS ON *.* TO 'exporter'@'localhost' identified by '123456';
GRANT SELECT ON *.* TO 'exporter'@'localhost';
flush privileges;
3,创建.my.cnf文件 vi .my.cnf:
[client]
user=exporter
password=123456
4, 执行nohup ./mysqld_exporter -config.my-cnf=.my.cnf &
结果报错msg="Error pinging mysqld: Error 1045: Access denied for user 'exporter'@'localhost' (using password: YES)" source="mysqld_exporter.go:268"
关键是,使用Mysql-5.6.25的版本采取同样的操作就没问题
5.6版本是自己虚拟机的,5.7的是公司的,总不能改版本吧
从报错上看,应该还是权限的问题,试过'exporter'@'%' 不行,试过user=root也不行,都是报同样的错误
是不是mysql5.7有其他的设置?
...全文
相关推荐
mysqld_exporter-0.14.0.linux-amd64.tar.gz
mysqld_exporter-0.14.0.linux-amd64.tar.gz
使用Grafana+Prometheus监控mysql服务性能
Prometheus(也叫普罗米修斯)官网:https://prometheus.io/docs/introduction/overview/ Grafana官网:https://grafana.com/enterprise 特征 普罗米修斯的主要特点是: 具有由度量名称和键/值对标识的时间序列数据的多维数据模型 一个灵活的查询语言 来利用这一维度 不依赖分布式存储; 单个服务器节点是自治的 时间序列集合通过HTTP上的拉模型发生 推送时间序列通过中间网关支持 通过服务发现或静态配置发现目标 多种图形和仪表板支持模式 组件 Prometheus生态系统由多个组件组
exporter部署手册
本文详细介绍了基于prometheus的数据采集器exporter,node_exporter,redis_exporter,mysql_exporter,mongodb_exporter,等各种采集器的安装和运行
mysql监控exporter
Window下Prometheus监控mysql数据库
promethues(普罗米修斯)监控mysql-详细文档
promethues(普罗米修斯)监控mysql——详细文档,超详细文档总结


