Mysql: communication failure during hand shake

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
or tomcat/common/classes


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: