Knowledge   
  Login
Error on start - Access denied for user 'root'@'localhost'

 Problem :  Open MySQL connection> java.sql.SQLException: Access denied for user 'root' @ 'localhost'

 Cause :  The password of the 'root' user of your MySQL server is not correct.

 Solution :  Open the 'conf/server.conf' file, go to MySQL section, and set the correct user password 'root' (here you have to change 'pwd' after the '=')

#The MySQL password [string]
pwd=pwd

To check your MySQL connection :

mysql --host=127.0.0.1 --port=3306 -u root -ppwd --database=mentdb

mysql --host=localhost --port=3306 -u root -ppwd --database=mentdb


 Noted :  That use the root user is deprecated on servers.