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

一、问题

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

 

posted @ 2021-05-29 16:59  ffzzblog  阅读(815)  评论(0编辑  收藏  举报