输入banner图图片脚本导航/分类

MySQL java连接被拒绝:java.sql.SQLException: Access denied for user 'root'@'****' (using password: YES)

user root@***.**.**.** (using password: YES)

MySQL服务器部署在Linux上,错误中被我隐掉的是我的公网IP。 

 

这是由于“IP为***.**.**.**,名字为root”的用户 没有权限访问数据库

 

解决办法:


 

通过Navicat连接数据库,执行下面内容:

grant all privileges on *.* to root@% identified by root

 

MySQL java连接被拒绝:java.sql.SQLException: Access denied for user 'root'@'****' (using password: YES)

标签:span   user   ges   连接   数据   navicat   ant   logs   ica