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