MySQL 设置时区参数

问题:Exception in thread "main" java.sql.SQLException: The server time zone value '�й���׼ʱ��' is unrecognized or represents

MySQL 设置时区参数-LMLPHP

解决方法:给 url 设置时区参数

String url = "jdbc:mysql://localhost:3306/taobao?serverTimezone=Asia/Shanghai" ;

MySQL 设置时区参数-LMLPHP

10-14 17:44