对于date数据插入时错误,可以使用2条命令进行确定:

1.select now();

查看数据库时间是否正确

2.show variables like '%time_zone%';

查看mysql系统时区

(数据库-MySQL)date数据插入时错误

 

相关文章: