java.sql.SQLException: Access denied for user ‘root’@’localhost’ (using password: YES)

This can help you:

GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY '%password%' WITH GRANT OPTION;

Execute it with command line or some GUI tool.

Don’t forget to replace %password% with real password.

Leave a Comment