Access denied for user 'root'@'localhost' (using p
Exception message:
Access denied for user 'root'@'localhost' (using password: YES)
Java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)
ERROR c.alibaba.druid.pool.DruidDataSource-init datasource error, url
Cause of exception:
Checked a lot of blog forums, all said that the reason is that url is wrong
Carefully checked url, username, password, no problem.
Can only follow the hint, try to change the MySQL account password, and finally got it.
Solution:
Change MySQL's root account password.
Specific reference:
You can enter directly on the windows command line:
Mysqladmin-uroot-p Old password password New password
Note:
Enter directly after typing, there is no need to enter a semicolon.