Accessing a MySQL database
Posted on 2004-11-24
I imagine I'm doing something fairly stupid but I've followed and looked at several tutorials and have still come up short. I've been at this a long time so I imagine that I've missed something :)
Whenever I try and connect to the MySQL database using J Connector, I get an SQLException with "No suitable driver". The jar file provided by MySQL is definately in the path and I've got an import statement for it. Here's the code I'm trying :
conn = DriverManager.getConnection("jdbc:mysql://192.168.1.111/acr","testuser","*****");
The import statement is :
and I'm sure that it's importing it okay.