JAVA日报

public static final String URL = "jdbc:mysql://localhost:3306/text?characterEncoding=utf8&useSSL=false&serverTimezone=UTC&rewriteBatchedStatements=true";
public static final String USER = "root";
public static final String PASSWORD = "123";

Class.forName("com.mysql.cj.jdbc.Drive");

conn = DriverManager.getConnection(URL,USER,PASSWORD);

posted @ 2020-10-30 21:07  我的未来姓栗山  阅读(37)  评论(0编辑  收藏  举报