Pattern selector

Most relevant patterns first. Most helpful ones displayed. Click here to show all.

  1. DriverManager.getConnection() has thrown a SQLException
    Java Runtime
    361
    73
    155
  2. Unable to find suitable driver to create connection with database server
    Java Runtime
    371
    75
    180

Your stack trace compared to the selected pattern

Jump to solutionsExpand frames
java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/student
    at java.sql.DriverManager.getConnection(Unknown Source)
    at java.sql.DriverManager.getConnection(Unknown Source)

Solution

rahsan1 month ago

This type of error usually happens if you forget to load the driver for the database before calling DriverManager.getConnection(). To prevent this, load driver first by calling: Class.forName("Driver Name")

External results for this pattern (10)

  1. Nashe Chiuvia Google Groups1 week ago
    No suitable driver found for jdbc:postgresql://mypostgres:5432/databsename?user=username&password=password
    Show stack trace
  2. Yogesh Jagtapvia Google Groups1 week ago
    Mondrian Error:Internal error: Error while creating SQL connection: Jdbc=jdbc:optiq:model=file:/home/yogesh/optiq/mongodb/target/test-classes/mongo-zips-model.json
    Show stack trace
  3. Juan Rodríguez Hortalávia Google Groups1 week ago
    Mondrian Error:Internal error: Error while creating SQL connection: Jdbc=jdbc:optiq:model=file:/home/cloudera/Sistemas/optiq/mongodb/target/test-classes/mongo-zips-model-juanrh.json; JdbcUser=admin; JdbcPassword=admin
    Show stack trace
  4. Andrewvia Google Groups1 week ago
    No suitable driver found for jdbc:mysql:// >> localhost:3306/abmyers
    Show stack trace
  5. holgerbrandlvia GitHub2 weeks ago
    No suitable driver found for ***jdbc cluster connection string ****
    Show stack trace
  6. claudio-rosativia GitHub3 weeks ago
    Cannot connect to database, No suitable driver found for jdbc:mysql://172.16.107.12/alarm
    Show stack trace
  7. srgvia Google Groups4 weeks ago
    java.sql. SQLException: No suitable driver found for jdbc:postgresql: //localhost:5433/mydb
    Show stack trace
  8. jfmonteilvia GitHub1 month ago
    No suitable driver found for jdbc:mysql://localhost:3306/telefonica
    Show stack trace
  9. 643155via Oracle Community1 month ago
  10. pyongjoovia GitHub1 month ago
    No suitable driver found for jdbc:mysql://localhost:3306/tpch1g
    Show stack trace