尝试解决
(1)对root授权:无效
grant all privileges on *.* to root@localhost identified by '你为root设置好的密码';
flush privileges;
(二)
(1)SSH登录root管理员账户
(2)登录MySql
# mysql -u root -p
Enter password:
(3)执行授权命令
mysql> grant all privileges on *.* to root@'localhost' identified by '密码';
mysql> flush privileges;
或
mysql> grant all privileges on *.* to root@'%' identified by '密码';
mysql> flush privileges;
(4)退出再试
mysql> quit
Bye
(5)再次登录
然后,问题就解决了~