|
@@ -26,17 +26,17 @@ public class MySqlUtil {
|
|
|
//是否连接数据库
|
|
|
public static String mysql_open = "false";
|
|
|
//数据库连接地址
|
|
|
- public static String mysql_url = "jdbc:mysql://123.60.19.203:5006/hitch-sb";
|
|
|
+ //public static String mysql_url = "jdbc:mysql://123.60.19.203:5006/hitch-sb?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&allowMultiQueries=true";
|
|
|
//用户名
|
|
|
- public static String mysql_username = "root";
|
|
|
+ //public static String mysql_username = "root";
|
|
|
//密码
|
|
|
- public static String mysql_password = "mysql?MYSQLmoniu123";
|
|
|
+ //public static String mysql_password = "mysql?MYSQLmoniu123";
|
|
|
//数据库连接地址
|
|
|
- // public static String mysql_url = "jdbc:mysql://192.168.16.222:3306/hitch-sb";
|
|
|
+ public static String mysql_url = "jdbc:mysql://192.168.16.222:3306/hitch-sb?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&allowMultiQueries=true";
|
|
|
//用户名
|
|
|
- // public static String mysql_username = "root";
|
|
|
+ public static String mysql_username = "root";
|
|
|
//密码
|
|
|
- // public static String mysql_password = "mydm888";
|
|
|
+ public static String mysql_password = "mydm888";
|
|
|
//驱动名称
|
|
|
public static String mysql_driver = "com.mysql.cj.jdbc.Driver";
|
|
|
// 采集数据,结构:遥测最低,遥测最高;电度最低,电度最高
|