Here I have this error
java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)
if I execute this thing
GRANT ALL PRIVILEGES ON . TO 'root'@'localhost' IDENTIFIED BY 'root' WITH GRANT OPTION;
then I have this error.
ERROR 1045 (28000): Access denied for user ''@'localhost' (using password: NO)