当前位置:Gxlcms > mysql > Field'id'doesn'thaveadefaultva_MySQL

Field'id'doesn'thaveadefaultva_MySQL

时间:2021-07-01 10:21:17 帮助过:11人阅读

MySQL 5中,出现错误提示:
Field 'id' doesn't have a default value

解决方法一:

打开my.ini,查找
sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"

修改为

sql-mode="NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"

然后重启MYSQL

人气教程排行