Connection conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/表名?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai", "账号", "密码");
JDBC-Mysql-六步-细节
最新推荐文章于 2024-09-04 20:48:11 发布
Connection conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/表名?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai", "账号", "密码");