jdbc
I'm having problems setting up mysql to do some
jdbc. Here's what I've done so far:
a) downloaded mysql and set it up. I can do manual
sql entries, create table, insert into table, all
through a dos window.
path to mysql--> c:\program files\mysql
b) downloaded mysql-connector-j and set my classpath
variable through the control p****, system option.
path to mysql--> c:\program files\mysql connector
which is the directory containing the
mysql-connector-java-3.1.13-bin.jar file
c) typed a java file in which I just start with
Class.forName("EXACTLY WHAT GOES IN HERE?").newInstance();
I had what was in the connector-j do***entation, which was
"com.mysql.jdbc.Driver", but all I've ever gotten was an
exception thrown
Can anybody help me? Am I missing something? I've followed ALL
the install instructions, but for some reason my program doesn't
recognize the driver.
Thanks,
John
|