If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > java.sql.SQLException: Communication failure during handshake.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-25-04, 12:19
psycho_pete psycho_pete is offline
Registered User
 
Join Date: Nov 2004
Posts: 0
java.sql.SQLException: Communication failure during handshake.

I am running windows2000 with a tomcat apache server. I have donwloaded and installed mysql4.1. I am trying to access the database via a java application runnning on the tomcat server. Both the tomcat server and the mysql server are running on the same computer.

java.sql.SQLException: Communication failure during handshake. Is there a server running on localhost:3306?

is the error I am getting, I know the server is running as when I perform a netstat and I get

TCP localhost:3306 localhost:2906 ESTABLISHED
TCP localhost:3306 localhost:2907 TIME_WAIT

this only exists when the server is running. I used the installation tool that came with the mySQL server to set up the server and the root password is set to my password.

Any help would be great

Thanks,

Pete
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On