<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>O I P O P - 私人领域 &#187; 数据库操作</title>
	<atom:link href="http://blog.oipop.com/archives/category/%e6%95%b0%e6%8d%ae%e5%ba%93%e6%93%8d%e4%bd%9c/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.oipop.com</link>
	<description>From the Internet, For the Internet.</description>
	<lastBuildDate>Mon, 21 Jun 2010 21:13:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>调试数据库操作记录</title>
		<link>http://blog.oipop.com/archives/82</link>
		<comments>http://blog.oipop.com/archives/82#comments</comments>
		<pubDate>Wed, 02 Dec 2009 23:34:55 +0000</pubDate>
		<dc:creator>Kinsta</dc:creator>
				<category><![CDATA[数据库操作]]></category>

		<guid isPermaLink="false">http://blog.oipop.com/?p=82</guid>
		<description><![CDATA[INSERT INTO user VALUES(&#8216;%&#8217;,'admin&#8217;,PASSWORD(&#8217;something&#8217;),&#8217;Y',&#8217;Y',&#8217;Y',&#8217;Y',&#8217;Y',&#8217;Y',&#8217;Y',&#8217;Y',&#8217;Y',&#8217;Y',&#8217;Y',&#8217;Y',&#8217;Y',&#8217;Y',&#8217;Y',&#8217;Y',&#8217;Y',&#8217;Y',&#8217;Y',&#8217;Y',&#8217;Y',&#8217;Y',&#8217;Y',&#8217;Y',&#8217;Y',&#8217;Y',&#8217;Y',&#8217;Y',&#8221;,&#8221;,&#8221;,&#8221;,0,0,0,0);
服务器放在局域网内进行测试时，数据库的访问速度还是很快。但当服务器放到外网后，数据库的访问速度就变得非常慢。
后来在网上发现解决方法,my.cnf里面添加
[mysqld]
skip-name-resolve
这样速度就快了!
]]></description>
			<content:encoded><![CDATA[<p>INSERT INTO user VALUES(&#8216;%&#8217;,'admin&#8217;,PASSWORD(&#8217;something&#8217;),&#8217;Y',&#8217;Y',&#8217;Y',&#8217;Y',&#8217;Y',&#8217;Y',&#8217;Y',&#8217;Y',&#8217;Y',&#8217;Y',&#8217;Y',&#8217;Y',&#8217;Y',&#8217;Y',&#8217;Y',&#8217;Y',&#8217;Y',&#8217;Y',&#8217;Y',&#8217;Y',&#8217;Y',&#8217;Y',&#8217;Y',&#8217;Y',&#8217;Y',&#8217;Y',&#8217;Y',&#8217;Y',&#8221;,&#8221;,&#8221;,&#8221;,0,0,0,0);</p>
<p>服务器放在局域网内进行测试时，数据库的访问速度还是很快。但当服务器放到外网后，数据库的访问速度就变得非常慢。</p>
<p>后来在网上发现解决方法,my.cnf里面添加</p>
<p>[mysqld]<br />
skip-name-resolve</p>
<p>这样速度就快了!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.oipop.com/archives/82/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>sqlite数据库操作相关的笔记</title>
		<link>http://blog.oipop.com/archives/85</link>
		<comments>http://blog.oipop.com/archives/85#comments</comments>
		<pubDate>Wed, 02 Dec 2009 23:32:42 +0000</pubDate>
		<dc:creator>Kinsta</dc:creator>
				<category><![CDATA[数据库操作]]></category>
		<category><![CDATA[sqlite]]></category>
		<category><![CDATA[数据库]]></category>

		<guid isPermaLink="false">http://blog.oipop.com/?p=85</guid>
		<description><![CDATA[下面的语句可以使时间字段很好的排序.
select *,(julianday(&#8216;now&#8217;)*86400 -julianday([日期时间字段])*86400) as limits from [tablename] order by limits asc
]]></description>
			<content:encoded><![CDATA[<p>下面的语句可以使时间字段很好的排序.</p>
<p>select *,(julianday(&#8216;now&#8217;)*86400 -julianday([日期时间字段])*86400) as limits from [tablename] order by limits asc</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.oipop.com/archives/85/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
