I'am not able to establish connection with mysql from java using this code
Connection con=null;
String dbUrl="jdbc:mysql://localhost:3300/sys?useSSL=true";
String driver = "com.mysql.cj.jdbc.Driver";
String userName = "root";
String password = "cool123";
Class.forName(driver).getDeclaredConstructor().newInstance();
con = DriverManager.getConnection(dbUrl,userName,password);
It's throwing me this error The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. The driver has not received any packets from the server. No appropriate protocol (protocol is disabled or cipher suites are inappropriate)