i have installed mysql , and JDK . I wrote the following code to test jdbc . But it didnt work
public class Test {
public static void main(String[] args) {
try {
Class.forName("root.mysql.jdbc.Driver").newInstance();
System.out.println("Good to go");
} catch (Exception E) {
System.out.println("JDBC Driver error");
}
}
}
its printing
JDBC Driver error
But when i script in PhP , i can connect and store in db using MySQL.