OK. I'm an idiot.
It suddenly hit me today that my code worked at home, but not at
school. Then I remembered that we have a proxy server at school.
I disabled the SOCKS proxy, and, sure enough, everything works now.
There are disadvantages to just changing a Home/School setting,
especially if y
d O'Bryan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 02, 2003 10:52 AM
To: Mark Matthews
Cc: [EMAIL PROTECTED]
Subject: Re: JDBC can't connect, but command line can...
>
> When you don't specify a hostname (and 'localhost' doesn't count, use
> '127.0.0
When you don't specify a hostname (and 'localhost' doesn't count, use
'127.0.0.1') to the mysql commandline client, it uses Unix domain
sockets to connect to the server.
JDBC has to use TCP/IP, because Java doesn't have support for Unix
domain sockets.
What happens if you do:
mysql -h 127.0.0.1 -u
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Todd O'Bryan wrote:
| I've managed to get mysql up and running again (I don't know how) but
| JDBC won't connect to it.
|
| Here's my little simple code:
|
| import java.sql.*;
| import java.io.*;
|
| pub
I've managed to get mysql up and running again (I don't know how) but
JDBC won't connect to it.
Here's my little simple code:
import java.sql.*;
import java.io.*;
public class MySQLTester {
public static void main(String[] args) th