GRANT ALL PRIVILEGES ON *.* TO root @'%' IDENTIFIED BY "mypassword";--%表示所有的IP都能访问,也可以修改为专属的 -- mypassword 为连接密码 需要修改为你自己的 FLUSH PRIVILEGES;
网上一直找原因,没找到具体原因,也试了各种写法,最终成功的还是加了双引号的
相关文章
- 11-08重置密码遇到ERROR 1045 (28000): Access denied for user ‘root‘@‘localhost‘ (using passwor:yes)问题
- 11-08java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)解决方案
- 11-08数据库异常 :java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)
- 11-08Eclipse使用jdbc连接MySql数据库报:java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)
- 11-08java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)
- 11-08java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: NO)报错
- 11-08java.sql.SQLException: Access denied for user 'root '@'localhost' (using password: YES) 最蠢
- 11-08java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: NO)
- 11-08[Spring MVC - 2A] - java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)
- 11-08java.sql.SQLException: Access denied for user ‘root‘@‘localhost‘ (using password: YES)