Talk is cheap, just show the code. {% codeblock lang:java %} import java.sql.*; public class MySQLTest { public static void main(String[] args) throws Exception { // 驱动程序名 String driver = "com.mysql.jdbc.Driver"; // URL指向要访问的数据库名abc,useSSL=false使控制台不