hHi, I’m trying to connect to a MySql databse and keep getting a java.sql.SQLException: No suitable driver found for jdbc:mysql:// localhost:3306/mysql This is what I did 1. installed the driver – a. copied the mysql-connector-java-5.1.10-bin to java/jre6/lib/ext folder 2. wrote the following program try { String url = "jdbc:mysql://localhost:3306/mysql"; Connection con = DriverManager.getConnection( url,"root", ""); con.close(); }catch( Exception e ) { e.printStackTrace(); }//end catch
The exception keeps going off. - Ted -- You received this message because you are subscribed to the Google Groups "Java EE (J2EE) Programming with Passion!" group. To post to this group, send email to java-ee-j2ee-programming-with-passion@googlegroups.com To unsubscribe from this group, send email to java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en