JDBC连接MySQL数据库 import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; public class JDBCTest { public static void main(String[] args) { String driverName="com.mysql.cj.jdbc.Driver"; String dbURL="jdbc:mysql://localhost:3306/test?useUnicode=true&ch