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]

To check your MySQL connection :

mysql --host= --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.