Tomcat cannot connect to MySQL on localhost

Posted by David on Server Fault See other posts from Server Fault or by David
Published on 2010-03-22T13:54:51Z Indexed on 2010/03/22 14:01 UTC
Read the original article Hit count: 342

Filed under:
|
|
|
|

Hi,

I have deployed an application on my Tomcat server with JDBC resources defined. What is puzzling me is that I can connect to the database (which is running locally on the server) only using the server's IP. When I change the resource host to localhost (or 127.0.0.1) then MySQL rejects the connection. I don't want to be connection via the server's IP but rather locally.

What do I do?

Thanks!

© Server Fault or respective owner

Related posts about tomcat

Related posts about mysql