1. 打开MySQL命令行,检查当前数据库的严格模式:SELECT @@GLOBAL.sql_mode;
2. 更新全局sql_mode参数: SET GLOBAL sql_mode='ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION';
3. 检查是否更新成功: SELECT @@GLOBAL.sql_mode;
4. 重新启动MySQL服务
标签:Incorrect,GLOBAL,value,datetime,报错,mode,sql From: https://www.cnblogs.com/h-hzh/p/17286919.html