Communication failure during hand shake: is mysql server running on
localhost 3306 port.
This is the most common error which mysql users encounter.
The following is the solution for the mentioned versions below:
Mysql Ver: 4.1
Go to mysql prompt.
run the command:
set password for (user-name)@(server-name) = old_password(“ur-password”);
Fill in the brackets with ur details and there u go!!!
Another common problem, is unable to find the mysql driver.
Just put the driver in tomcat/shared/classes