I am trying to make mysql database connection from my war file using jdbc connection string as shown below:-
String connectionURL = "jdbc:mysql://localhost:3306/DatabaseName? user=DatabaseUserName;password=DatabasePassword";
Now my war file and database both available on server, & i am doing my execution from server itself. But the problem is that i am getting below error which says:-
INFO: java.sql.SQLException: Access denied for user 'grandsho_root;password=pwd'@'localhost' (using password: NO)
where
grandsho_root is my user, pwd is my password ...I need to know what exactly is this problem? Do i need to perform GRANT ALL command. or something like that?