i am trying to get connection with mysql by using java. when i try to compile java code it gives following compilation error
"testSQL.java:29: cannot access Connection bad class file: .\Connection.class class file contains wrong class: org.gjt.mm.mysql.jdbc2.Connection Please remove or make sure it appears in the correct subdirectory of the classpath.
Connection con = DriverManager.getConnection(url, username ,pass);
my code is :
String username = "username";
String password = "password";
String url = "jdbc:mysql://mysql.it-c.dk" + username;
Connection con = DriverManager.getConnection(url, username , pass);