Driver driver = new com.mysql.jdbc.Driver(); DriverManager.registerDriver(driver);
Connection con = DriverManager.getConnection(url,user,pwd);
JDBC连接MySql
原文:https://www.cnblogs.com/Maintain/p/14244004.html