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 |
./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
请问啥原因?