How do you connect the MySQL in Java with IntelliJ Idea?When I did,there was always problem that is "java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/db".
Asked
Active
Viewed 1,836 times
0
-
1maybe add the jar to the classpath – Scary Wombat Jan 17 '17 at 04:54
-
This indicates that you need additional code added to your project. You may want to have a look at https://docs.oracle.com/javase/tutorial/jdbc/basics/gettingstarted.html#step3 to understand better. – Thorbjørn Ravn Andersen Jan 17 '17 at 09:00
-
Are you trying to connect to MySQL with IntelliJ Idea, oder with the program you're writing? – t0r0X Jan 17 '17 at 13:47
1 Answers
0
Please add "mysql-connector-java.jar" to your class path.If this jar file not found in your class path ,it will throw java.sql.SQLException: No suitable driver found for jdbc:mysql

AssenKhan
- 576
- 5
- 15