SQLSTATE[HY000]: General error: 1364 Field ‘img_id‘ doesn‘t have a default value(MySQL配置问题)
SQLSTATE[HY000]: General error: 1364 Field ‘img_id’ doesn’t have a default value(MySQL配置问题)解决方法:在你的文件安装目录上找my.ini文件(或者my.cnf),在文件配置项中找到[mysqld]这个配置项,找到sql-mode="STRICT_TRANS_TABLESNO_ENGINE_SUBSTITUTION"改为sql-mode=NO_AUTO_CREATE_USER,NO_ENGINE_SUBS
复制链接