jdbc - mysql - servlet issue
Hi there folks,
I'm having a kinda strange problem when trying to connect to a mysql db using jdbc in a servlet. Doing the same thing in an application from the command line, it works fine. Just when I do the very same thing with a servlet it says:
==> SQLException: Message: Cannot connect to MySQL server on localhost:3306. Is there a MySQL server running on the machine/port you are trying to connect to? (java.security.AccessControlException)SQLState: 08S01ErrorCode: 0
(I'm using MM.MySQL as the JDBC driver).
I've also tried the IP of the webserver, 127.0.0.1, the domain name of the webserver but everything seems to fail. Does anyone have an idea on how to solve this?
Thanks a bunch.