cnblogs/dcrenl/MySQL数据库datetime类型不能为空值的问题.html

11 lines
446 B
HTML
Raw Permalink Normal View History

2024-09-24 12:43:01 +08:00
<p>修改mysql的配置文件my.ini 将其只的:</p>
<div class="cnblogs_code">
<pre>sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"</pre>
</div>
<p>修改为:</p>
<div class="cnblogs_code">
<pre>sql-mode="NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"</pre>
</div>
<p>这里把STRICT_TRANS_TALBES去掉之后重启MySQL解决</p>
<p>&nbsp;</p>
<p>转自https://www.cnblogs.com/finary/p/3339872.html</p>