Caused by: java.sql.SQLException: Access denied for user 'root'@'localhost' (usi

一、问题

Caused by: java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)

解决方案:进行本地数据库的一个授权,将相应的用户root设置localhost访问权限,

>GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '123456';

>FLUSH PRIVILEGES

Caused by: java.sql.SQLException: Access denied for user 'root'@'localhost' (usi

 

上一篇:Putty·Network error:Software caused connection abort


下一篇:手把手:四色猜想、七桥问题…程序员眼里的图论,了解下?(附大量代码和手绘)