互联网服务MySQL

pt-heartbeat,提示权限报错?

mysql> show grants for root@localhost;
Grants for root@localhost
GRANT ALL PRIVILEGES ON . TO 'root'@'localhost' WITH GRANT OPTION
GRANT PROXY ON ''@'' TO 'root'@'localhost' WITH GRANT OPTION

root用户执行,v5.7版本

./pt-heartbeat -D pt_test --update -u root -p 123456 -h 192.168.150.11 -P 3310 -S /tmp/mysql_3310.sock --create-table --daemonize
DBI connect('pt_test;host=192.168.150.11;port=3310;mysql_socket=/tmp/mysql_3310.sock;mysql_read_default_group=client','root',...) failed: Access denied for user 'root'@'mysql-pri' (using password: YES) at ./pt-heartbeat line 2137
请问啥原因?

参与5

相关问题

相关资料

相关文章

问题状态

  • 发布时间:2018-05-10
  • 关注会员:2 人
  • 问题浏览:1723
  • 最近回答:2018-05-10
  • X社区推广