Reputation: 3371
I have the following problem at the moment.
I am using mySQL and Tomcat for my college project, and I am able to connect mySQL DB locally from a jsp page. However, if I try to use mySQL and server in my college, I got the following error
Exception: Communications link failure. The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
Just wondering if anyone has the experience before and how to solve it? Thanks!!!
Upvotes: 0
Views: 320
Reputation: 1109625
So locally it works fine, but at college not? Then it's a matter of a firewall at the college. Contact the network admin of the college for support.
Upvotes: 1
Reputation: 51965
This might be a firewall issue, it could be blocking incoming connections on the MySQL port (by default, 3306). To see if that's the case, you could try telnetting into the MySQL server and port and seeing if you're denied access.
Here's a Sun forums post which discusses this error.
Upvotes: 0