cnblogs/dcrenl/MySQL数据库datetime类型不能为空值的问题.html
2024-09-24 12:43:01 +08:00

11 lines
446 B
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<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>