-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, Aug 12, 2002 at 05:14:46PM +0200, Jan Willem Penterman wrote:
> SQLException: 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.net.ConnectException)

generally, if you see this problem, your driver is loaded correctly;
however, it is unable to connect to your mysql server.  i would test
this by trying to telnet to port 3306 on localhost and see if you get
a connection.  if you don't, you need to make sure your mysql is
allowing connections over tcp/ip which, if i'm not mistaken, debian
has turned off by default.  look in the /etc/my.cnf or maybe
/etc/mysql/my.cnf or some such for a skip-networking flag and comment
it out if necessary.  restart mysql, try the telnet again.  if it
works, restart tomcat and see if your app works.

another thing to check is if you have some sort of firewall software
enabled that is blocking that particular port.

hth,

- -- 
Peter Abplanalp

Email:   [EMAIL PROTECTED]
PGP:     pgp.mit.edu
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9V9W0ggA8sH0iRXQRAnQcAJ9dEA9G4+Fw3QT7j2IbNeV3h1eEDwCcDcvo
q5X51xanggB0ECObZIx+n2Q=
=e9ia
-----END PGP SIGNATURE-----

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to