Please tell me with this question. Can I connect to the Mysql server without specifying the database (this is necessary in order to be able to send the server a request to create a new database on the server), bypassing the ConnectionPool and other features that the web container adds.

Connection connection; try { Class.forName("com.mysql.jdbc.Driver"); } catch (IllegalAccessException ex) { Logger.getLogger(DbManager.class.getName()).log(Level.SEVERE, null, ex); } connection = DriverManager.getConnection("https://exsample.com:3306/", "root", "xxx"); System.out.println("CONNECTION: " + connection); 

At performance of the given code the following error takes off

 java.sql.SQLException: No suitable driver found for https://exsample.com:3306/ at java.sql.DriverManager.getConnection(DriverManager.java:596) at java.sql.DriverManager.getConnection(DriverManager.java:215) 

When using ConnectionPool to a specific database, there are no problems :)

Or tell me how it can be solved in another way. Thank!!!

    1 answer 1

    Instead of https://exsample.com:3306/ jdbc:mysql://exsample.com:3306/ you need to use jdbc:mysql://exsample.com:3306/