时区错误
打开cmd,连接数据库 mysql -hlocalhost -uroot -p
输入 show variables like'%time_zone'; 显示时区
输入set global time_zone = '+8:00'; 修改时区
时区错误
打开cmd,连接数据库 mysql -hlocalhost -uroot -p
输入 show variables like'%time_zone'; 显示时区
输入set global time_zone = '+8:00'; 修改时区