MySQL 设置时区参数
问题:Exception in thread "main" java.sql.SQLException: The server time zone value '�й���ʱ��' is unrecognized or represents
解决方法:给 url 设置时区参数
String url = "jdbc:mysql://localhost:3306/taobao?serverTimezone=Asia/Shanghai" ;
问题:Exception in thread "main" java.sql.SQLException: The server time zone value '�й���ʱ��' is unrecognized or represents
解决方法:给 url 设置时区参数
String url = "jdbc:mysql://localhost:3306/taobao?serverTimezone=Asia/Shanghai" ;
© 著作权归作者所有