JDBC Driver error
When I type mysql at the command prompt I get:
access denied for user odbc@localhost using password: NO
Also, I keep getting "JDBC Driver error" when I run the code below:
public class test {
public static void main(String[] args) {
try {
Class.forName("com.mysql.jdbc.Driver").newInstance();
//Class.forName("org.gjt.mm.mysql.Driver").newInstance();
System.out.println("Good to go");
} catch (Exception E) {
System.out.println("JDBC Driver error");
}
}
}
I am running XP Pro and the mysql-connector-java-5.1.21-bin.jar file is in
C:\Program Files\MySQL\mysql-connector-java-5.1.21
My classpath is this:
C:\Program Files\MySQL\mysql-connector-java-5.1.21\mysql-connector-java-5.1.21-bin.jar
These problems began just a few days ago.
Any help would be appreciated.
Subject
Written By
Posted
JDBC Driver error
September 04, 2012 06:17PM
September 05, 2012 01:00PM
November 30, 2012 07:11PM
November 30, 2012 08:09PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.