0

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".

JoeXu
  • 31
  • 1
  • 7

1 Answers1

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
  • 552
  • 4
  • 15