1 message in com.mysql.lists.javaSQL-Exception (java.net.SocketException)
FromSent OnAttachments
Frank Gräwe24 Aug 2002 14:06 
Subject:SQL-Exception (java.net.SocketException)
From:Frank Gräwe (Fran@t-online.de)
Date:08/24/2002 02:06:22 PM
List:com.mysql.lists.java

Hi friends,

My aplication is using the mysql dbms. I try to connect to mysql with mm.mysql driver. I wrote this aplication when my OS was WIN98. It still running there. The MySQL Server runs on the same machine. Now I am using WIN XP Home Edition. The same aplication now throws the following exception: 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.SocketException).

I can use the MySQL server on the DOS prompt. I can update tables, i can insert lines etc.

I try to connect to MySQL with the following code: ... try { Class.forName("org.gjt.mm.mysql.Driver").new Instance(); cn = DriverManager.getConnection( "jdbc:mysql://localhost:3306/haushalt?user=v_user&password=v_pwd"); ....

please help me

Frank