<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[观夏Note]]></title> 
<link>//gm.angeldm.com/index.php</link> 
<description><![CDATA[新技术番]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[观夏Note]]></copyright>
<item>
<link>//gm.angeldm.com/post//</link>
<title><![CDATA[MySQL出错 - Field ‘*’ doesn’t have a default value]]></title> 
<author>果面 &lt;admin@yourname.com&gt;</author>
<category><![CDATA[网络应用]]></category>
<pubDate>Mon, 04 Aug 2008 09:02:54 +0000</pubDate> 
<guid>//gm.angeldm.com/post//</guid> 
<description>
<![CDATA[ 
	今天,在测试一个系统的时候,发现跳转到一个页面后就空白了.也没输出什么错误,即使加了<br/><br/>error_reporting(7);<br/><br/>仔细看了php页面,只有简单的一个sql执行比较有可能,于是输出了sql语句一看,语法方面都很正常<br/><br/>拿到phpmyadmin执行一看,才看到了经常看到的错误:<br/><br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content">&nbsp;&nbsp; <strong>MySQL 返回：</strong><a href="http://dev.mysql.com/doc/refman/5.0/en/error-messages-server.html" target="mysql_doc"></a><br/>&nbsp;&nbsp; #1364 - Field 'guest' doesn't have a default value</div></div><br/>好像装了5.0之后的版本就会了<br/><br/> <br/>查了下,发现网上有这么一句话:<br/><br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content">&nbsp;&nbsp;&nbsp;&nbsp;MySQL 5 uses a strict mode which needs to be disabled.<br/>&nbsp;&nbsp; In Windows, Goto Start--&gt;Programs--&gt;MySQL-&gt;MySQL Instance Config Wizard. Follow through the Reconfigure Instance option--&gt;Detailed Configuration--&gt;Continue Next a few screens. At the bottom under Enable TCP/IP option there is 'Enable Strict Mode'. Deslect this option (no tick). Save changes and MySQL will restart.</div></div><br/><br/>就是这里啦 呵呵<br/><br/> <a href="//gm.angeldm.com/attachment.php?fid=2" target="_blank"><img src="//gm.angeldm.com/attachment.php?fid=2" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><br/>刷新下 问题解决 
]]>
</description>
</item><item>
<link>//gm.angeldm.com/read.php?&amp;guid=0#topreply</link>
<title><![CDATA[[评论] MySQL出错 - Field ‘*’ doesn’t have a default value]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>//gm.angeldm.com/read.php?&amp;guid=0#topreply</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>