no suitable driver found for jdbc:mysql:

Connection con = null;
try {
    //registering the jdbc driver here, your string to use 
    //here depends on what driver you are using.
    Class.forName("something.jdbc.driver.YourFubarDriver");   
    con = DriverManager.getConnection("jdbc:apache:commons:dbcp:test");
} catch (SQLException e) {
    throw new RuntimeException(e);
}

4.14
7
Awgiedawgie 440220 points

                                    
Try putting the driver jar in the server lib folder. ($CATALINA_HOME/lib)

I believe that the connection pool needs to be set up even before the application is instantiated. (At least that's how it works in Jboss)

4.14 (7 Votes)
0
Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost/toyengine No suitable driver found for jdbc:mysql://localhost/ java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/JBookStore in tomcat No suitable driver found for jdbc:mysql://localhost:3306/testdb [19:11:16 ERROR]: java.sql.SQLException: No suitable driver found for jdbc:mysql java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/java java.sql.SQLException: No suitable driver found for jdbc:msql://localhost:3306/ No suitable driver found for jdbc:mysql://localhost:82/post_management sql server no suitable driver found for jdbc No suitable driver found for jdbc:mysql://localhost:3306/employee_management_system No suitable driver found for jdbc:mysql://localhost:3306/local_db01 No suitable driver found for jdbc:mysql://localhost:3306/enterprise No suitable driver found for jdbc:mysql://localhost:3306 No suitable driver found for jdbc:mysql://localhost:3306/ java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost/blackjack No suitable driver found for jdbc:mysql db beaver java.sql.SQLException: No suitable driver found for jdbc:derby://localhost:1527/dbCoffeeStoreData java.sql.SQLException: No suitable driver found for jdbc java.sql.SQLException: No suitable driver found for jbdc:mysql:///project21 at java.sql.DriverManager.getConnection(DriverManager.java:689) java.sql.SQLException: No suitable driver found for jdbc:mysql//localhost/hotelmanagement_system No suitable driver found for jdbc:mysql//localhost:80/hotel management system No suitable driver found for jdbc:mysql//localhost:80/hotelmanagement_system java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/student_manage Exception: (connectionOpen)java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost/Pharmacy No suitable driver found for jdbc:mysql://localhost/Pharmacy No suitable driver found for jdbc:mysql://localhost:3306/census java.sql..SQLException: No suitable driver found for jdbc: java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/nnkjsp No suitable driver found for jdbc:mysql//localhost:80/hotelmanagement_system at java.sql.DriverManager.getConnection(DriverManager.java:689) eclipse No suitable driver found for jdbc:mysql java.sql.SQLException: No suitable driver found for jdbc:hsqldb:file:target/memdb No suitable driver found for jdbc:mysql://127.0.0.1:3306/sda Internal Exception: java.sql.SQLException: No suitable driver found for jdbc:mysql: No suitable driver found for jdbc:mysql no suitable driver found for jdbc mysql in spark No suitable driver found for jdbc:mysql://localhost:3306/mysql java.sql.sqlexception no suitable driver found for jdbc mysql mariadb java.sql.SQLException: No suitable driver found for java.sql.SQLException: No suitable driver found for jdbc:mysql:// No suitable driver found for mysql://localhost:3306/planten_java No suitable driver found for jdbc:sqlite: java.sql.SQLException: No suitable driver found for jdbc gradle project java.sql.SQLException: No suitable driver found for jdbc:mysql no suitable driver found java mysql java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/Bank2?autoReconnect=true mssql java No suitable driver found for jdbc:sqlserve No suitable driver found for jdbc:mysql:// dbeaver No suitable driver found for jdbc:mysql:// No suitable driver found for jdbc:mysql://127.0.0.1:18129 No suitable driver found for jdbc:mysql://127.0.0.1:18129/ No suitable driver found for jdbc:mysql://127.0.0.1:18129/ no suitable driver found for jdbc:sqlserver java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/carclaim no suitable driver driver found jdbc:sqlserver java.sql.sqlexception no suitable driver found for jdbc No suitable driver found for jdbc:mysql No suitable driver found for jdbc:mysql://localhost:3306/gymdb Errorjava.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/library java No suitable driver found for jdc:mysql://localhost no suitable driver found for jdbc oracle jdbc no suitable driver found no suitable driver found for jdbc:mysql eclipse with mysql no suitable driver found for jdbc:mysql eclipse No suitable driver found for jdbc:mysql://127.0.0.1:5500/library_db java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/my_db no suitable driver found for jdbc mysql no suitable driver found for jdbc java No suitable driver found for jdbc:mysql://localhost:3306/test no suitable driver found for java.sql.sqlexception No suitable driver found for jdbc:mysql://127.0.0.1:3307 No suitable driver found for jdbc:mysql://127.0.0.1:3307/hms_db^ Exception in thread "main" java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/ No suitable driver found for jdbc: no suitable driver found for jdbc mysql :/ localhost 3306 No suitable driver found for jdbc:mysql://127.0.0.1:58951/ java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/database1 in ubuntu 20 No suitable driver found for jdbc:mysql://localhost:3306/database1 ubuntu ava.sql.SQLException: No suitable driver found for jdbc:mariadb no suitable driver found for jdbc java.sql.SQLException: No suitable driver found No suitable driver found for jdbc:sqlite java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/megatherium No suitable driver found for jdbc:mariadb No suitable driver found for jdbc:mariadb: java.sql.SQLException: No suitable driver found for No suitable driver found for mysql:jdbc://localhost:3308/backup no suitable driver found for jdbc:mysql:
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source