Error executing statement: java.sql.SQLException: Access denied for user 'root'@'localhost' (using p

大体上解决这个错误的方案是:给mysql添加远程登陆权限。

mysql>grant all privileges on *.* to '用户名'@'%' identified by '连接命令' with grant option;

mysql>grant all privileges on *.* to '用户名'@'主节点名' identified by '连接命令’with grant option;

mysql>flush privileges;

猜你喜欢

转载自blog.csdn.net/int_double/article/details/80858557
今日推荐