0、参考文档: https://blog.csdn.net/cheng137666/article/details/114670465 1、数据库设置 set @@global.time_zone = '+08:00'; flush privileges; 2、断掉连接,重连测试