Hi guys,
I am new at java and JDBC and I am trying to use JDBC to connect localhost /mysql.
I have this code
but I get this error:
java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost/jdbctest
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at DBTest.main(DBTest.java:22)
could you please let me know what I am doing wrong? can you let me know where can I find a useful tutorial regarding this?
Best regards
Behrouz
Hey, this is a common issue which most of the beginners come across. What you need to do is just download the jar myql jar file and add this file under your libraries. This issue will be solved.