MySQL 连接报错:mysql access denied for user@ip

故障描述:

在VM中有MySQL,但是在PC中通过Navicat连接时,报如下错误:

m1045 - mysql access denied for 'root'@IP

解决方法:

执行如下命令:

 GRANT ALL PRIVILEGES ON *.* TO 'root'@'192.168.26.5' IDENTIFIED BY 'cloudera' WITH GRANT OPTION;
 FLUSH   PRIVILEGES;
参考:https://blog.csdn.net/u012888920/article/details/49700505/

猜你喜欢

转载自blog.csdn.net/wiborgite/article/details/80655889