进入 mysql ;
use mysql;
然后 执行
GRANT ALL PRIVILEGES ON *.* TO [email protected]"你.的.端.口" IDENTIFIED BY "你的密码" WITH GRANT OPTION;
FLUSH PRIVILEGES;
然后成功
Caused by: java.sql.SQLException: Access denied for user 'root'@'192.168.6.131' (using password: YES),远程连接数据库,连接不上解决方案
原文地址:https://www.cnblogs.com/Cdzdyhe/p/10214358.html
时间: 2024-10-16 01:55:07