mysql 连接数据库时时区报错
时间:2019-10-19 17:16:19
收藏:0
阅读:102
1.url: jdbc:mysql://192.168.0.101:3306/testdb?serverTimezone=UTC,在连接字符后面添加时区设置
2.使用navicat或者直接使用mysql命令行:
查看:show variables like ‘%time_zone%‘;
设置:set global time_zone=‘+8:00‘;
或者(在navicat中手动经+8:00填进去即可)
原文:https://www.cnblogs.com/maycpou/p/11704301.html
评论(0)