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