Caused by: java.sql.SQLException: Access denied for user 'root'@'192.168.6.131' (using password: YES),远程连接数据库,连接不上解决方案

进入 mysql   ;

 use mysql;

然后 执行

GRANT ALL PRIVILEGES ON *.* TO root@"你.的.端.口" IDENTIFIED BY "你的密码" WITH GRANT OPTION;

FLUSH PRIVILEGES;

 

然后成功

 

文章来自:https://www.cnblogs.com/Cdzdyhe/p/10214358.html
© 2021 jiaocheng.bubufx.com  联系我们
ICP备案:鲁ICP备09046678号-3