<?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>朴石</title>
	<atom:link href="http://www.chenxinxing.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.chenxinxing.com</link>
	<description>陈新兴的信息空间</description>
	<lastBuildDate>Wed, 16 May 2012 12:57:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Air Playit – 直接在手机上通过WiFi无线播放电脑上的海量高清电影视频 免费跨平台看片神器</title>
		<link>http://www.chenxinxing.com/2012/05/16/317/index.html</link>
		<comments>http://www.chenxinxing.com/2012/05/16/317/index.html#comments</comments>
		<pubDate>Wed, 16 May 2012 12:57:24 +0000</pubDate>
		<dc:creator>chenxx</dc:creator>
				<category><![CDATA[技术新闻]]></category>

		<guid isPermaLink="false">http://www.chenxinxing.com/?p=317</guid>
		<description><![CDATA[很多人都会下载一些电视剧、电影等视频放在电脑上。然而，有时别人在用你电脑或自己懒懒地躺在沙发上的时候，却想着要是能直接在手机上无线播放电脑上的电影视频MV神马的那该是多方便多享受啊。Air Playit 正是这样一款免费的视频音频流媒体应用！（不是之前介绍的AirPlay音乐播放器哦） Air Playit 支持 iOS 与 Android，能将320种不同的视频和音频文件通过 Wi-Fi、3G网络远程无线地传送到你的 iPhone、iPad 或是安卓手机上面去并直接流畅地实时播放，无需等待！它能让你的电脑变成一个云端服务器，你不再需要麻烦地去转换视频格式，也不必麻烦地去拷贝文件，当然也不需再占用你手机宝贵的空间了。甚至它还能帮你离线转换视频格式并下载保存到你的移动设备，供你出外无网络时也能观看…… Air Playit – 直接在手机上通过WiFi无线播放电脑上的海量高清电影视频 免费跨平台看片神器.]]></description>
			<content:encoded><![CDATA[<p style="font-family: arial, sans-serif; line-height: normal; background-color: #ffffff;">很多人都会下载一些电视剧、电影等<a style="color: #1155cc;" href="http://www.iplaysoft.com/tag/%E8%A7%86%E9%A2%91" target="_blank">视频</a>放在电脑上。然而，有时别人在用你电脑或自己懒懒地躺在沙发上的时候，却想着要是能直接在手机上无线播放电脑上的电影视频MV神马的那该是多方便多享受啊。<a style="color: #1155cc;" href="http://www.iplaysoft.com/airplayit.html" target="_blank">Air Playit</a> 正是这样一款免费的视频音频流媒体应用！（不是之前介绍的<a style="color: #1155cc;" href="http://www.iplaysoft.com/airplay.html" target="_blank">AirPlay音乐播放器</a>哦）</p>
<p style="font-family: arial, sans-serif; line-height: normal; background-color: #ffffff;"><strong>Air Playit</strong> 支持 <a style="color: #1155cc;" href="http://www.iplaysoft.com/tag/ios" target="_blank">iOS</a> 与 <a style="color: #1155cc;" href="http://www.iplaysoft.com/tag/android" target="_blank">Android</a>，能将320种不同的视频和音频文件通过 <a style="color: #1155cc;" href="http://www.iplaysoft.com/tag/wifi" target="_blank">Wi-Fi</a>、3G网络远程无线地传送到你的 iPhone、iPad 或是安卓手机上面去并直接流畅地实时播放，无需等待！它能让你的电脑变成一个云端服务器，你不再需要麻烦地去转换视频格式，也不必麻烦地去拷贝文件，当然也不需再占用你<a style="color: #1155cc;" href="http://www.iplaysoft.com/tag/%E6%89%8B%E6%9C%BA" target="_blank">手机</a>宝贵的空间了。甚至它还能帮你离线转换视频格式并下载保存到你的移动设备，供你出外无网络时也能观看……</p>
<p style="font-family: arial, sans-serif; line-height: normal; background-color: #ffffff;"><a href="http://iplaysoft.feedsportal.com/c/34213/f/621334/s/1f542c3e/l/0L0Siplaysoft0N0Cairplayit0Bhtml/story01.htm">Air Playit – 直接在手机上通过WiFi无线播放电脑上的海量高清电影视频 免费跨平台看片神器</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chenxinxing.com/2012/05/16/317/index.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>雷军建言开发者:做移动互联网要有一部iPhone,你凭什么建言呢？？</title>
		<link>http://www.chenxinxing.com/2012/05/14/314/index.html</link>
		<comments>http://www.chenxinxing.com/2012/05/14/314/index.html#comments</comments>
		<pubDate>Mon, 14 May 2012 00:46:17 +0000</pubDate>
		<dc:creator>chenxx</dc:creator>
				<category><![CDATA[技术新闻]]></category>

		<guid isPermaLink="false">http://www.chenxinxing.com/?p=314</guid>
		<description><![CDATA[一大早收到邮件，有同事推荐来一篇文章《雷军建言开发者:做移动互联网要有一部iPhone》，http://tech.sina.com.cn/i/2012-05-12/23097098989.shtml 看了开头和结尾，心里有些话，不吐不快啊！ 雷军就是做营销还是秀的很到位，这点确实很符合中国这个用户群的口味的。做产品，我觉得一般。模仿苹果，模仿的太有点东施效颦了。 同样，乔布斯从小日本哪里“偷”来了ipod设计，能做出iphone来，一个革命性与颠覆人们观念的产品。雷军从MEIZU哪里“偷”了手机设计，做出小米手机还是那么山寨，小米手机除了便宜外，没有什么革命性的内容了。 米聊产品，copy了Kik 与whatsAPP。除了本地化和窃取用户通讯录内容外，也没什么新意，所以能被微信 “摇一摇” 给摇下去了。 这篇文章，要说建言的话，我看雷军就一个意思：开发者们，你应该开发IOS应用，追随apple吧。然，小米手机是android的，岂不是矛盾呢。说来说去没什么别的东西（除了标题唬人外），其实就是小米手机的软广告。除了误导人外，还是秀。 &#160;]]></description>
			<content:encoded><![CDATA[<div style="font-family: arial; font-size: small; line-height: normal;">一大早收到邮件，有同事推荐来一篇文章《雷军建言开发者:做移动互联网要有一部iPhone》，<a href="http://tech.sina.com.cn/i/2012-05-12/23097098989.shtml">http://tech.sina.com.cn/i/2012-05-12/23097098989.shtml</a></div>
<div style="font-family: arial; font-size: small; line-height: normal;"></div>
<div style="font-family: arial; font-size: small; line-height: normal;">看了开头和结尾，心里有些话，不吐不快啊！</div>
<div style="font-family: arial; font-size: small; line-height: normal;"></div>
<div style="font-family: arial; font-size: small; line-height: normal;">雷军就是做营销还是秀的很到位，这点确实很符合中国这个用户群的口味的。做产品，我觉得一般。模仿苹果，模仿的太有点东施效颦了。</div>
<div style="font-family: arial; font-size: small; line-height: normal;"></div>
<div style="font-family: arial; font-size: small; line-height: normal;">同样，乔布斯从小日本哪里“偷”来了ipod设计，能做出iphone来，一个革命性与颠覆人们观念的产品。雷军从MEIZU哪里“偷”了手机设计，做出小米手机还是那么山寨，小米手机除了便宜外，没有什么革命性的内容了。</div>
<div style="font-family: arial; font-size: small; line-height: normal;"></div>
<div style="font-family: arial; font-size: small; line-height: normal;">米聊产品，copy了Kik 与whatsAPP。除了本地化和窃取用户通讯录内容外，也没什么新意，所以能被微信 “摇一摇” 给摇下去了。</div>
<div style="font-family: arial; font-size: small; line-height: normal;"></div>
<div style="font-family: arial; font-size: small; line-height: normal;">这篇文章，要说建言的话，我看雷军就一个意思：开发者们，你应该开发IOS应用，追随apple吧。然，小米手机是android的，岂不是矛盾呢。说来说去没什么别的东西（除了标题唬人外），其实就是小米手机的软广告。除了误导人外，还是秀。</div>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chenxinxing.com/2012/05/14/314/index.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL 信息收集与监控</title>
		<link>http://www.chenxinxing.com/2012/04/16/312/index.html</link>
		<comments>http://www.chenxinxing.com/2012/04/16/312/index.html#comments</comments>
		<pubDate>Mon, 16 Apr 2012 13:32:44 +0000</pubDate>
		<dc:creator>chenxx</dc:creator>
				<category><![CDATA[技术新闻]]></category>

		<guid isPermaLink="false">http://www.chenxinxing.com/?p=312</guid>
		<description><![CDATA[1, 查看MySQL服务器配置信息 mysql&#62; show variables; 2, 查看MySQL服务器运行的各种状态值 mysql&#62; show global status; 3, 慢查询 mysql&#62; show variables like &#8216;%slow%&#8216;; +&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;-+ &#124; Variable_name    &#124; Value &#124; +&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;-+ &#124; log_slow_queries &#124; OFF   &#124; &#124; slow_launch_time &#124; 2     &#124; +&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;-+ mysql&#62; show global status like &#8216;%slow%&#8216;; +&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;-+ &#124; Variable_name       &#124; Value &#124; +&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;-+ &#124; Slow_launch_threads &#124; 0     &#124; &#124; Slow_queries        &#124; 279   &#124; +&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;-+ 配置中关闭了记录慢查询（最好是打开，方便优化），超过2秒即为慢查询，一共有279条慢查询 4, 连接数 mysql&#62; show variables like &#8216;max_connections&#8217;; +&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;-+ &#124; Variable_name   &#124; Value &#124; +&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;-+ &#124; max_connections &#124; 500   &#124; +&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;-+ mysql&#62; show global status like &#8216;max_used_connections&#8217;; +&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;-+ &#124; Variable_name        &#124; Value &#124; +&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;-+ &#124; Max_used_connections &#124; 498   &#124; +&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;-+ 设置的最大连接数是500，而响应的连接数是498 [...]]]></description>
			<content:encoded><![CDATA[<p style="margin: 0px; padding: 5px 0px 0px; line-height: 1.5; font-size: 14px; font-family: 宋体, Arial; background-color: #fffcf3;">1, 查看MySQL服务器配置信息</p>
<div class="codecolorer-container mysql railscasts" style="margin: 0px; padding: 0px; line-height: 1.5; font-family: 宋体, Arial; font-size: 14px; background-color: #fffcf3; overflow: auto; white-space: nowrap; width: 702px;">
<div class="mysql codecolorer" style="margin: 0px; padding: 0px; line-height: 1.5;">mysql<span class="sy1" style="line-height: 1.5;">&gt;</span> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=SHOW" target="_blank">show</a> variables<span class="sy2" style="line-height: 1.5;">;</span></div>
</div>
<p><span style="font-family: 宋体, Arial; font-size: 14px; line-height: 15px; background-color: #fffcf3;">2, 查看MySQL服务器运行的各种状态值</span></p>
<div class="codecolorer-container mysql railscasts" style="margin: 0px; padding: 0px; line-height: 1.5; font-family: 宋体, Arial; font-size: 14px; background-color: #fffcf3; overflow: auto; white-space: nowrap; width: 702px;">
<div class="mysql codecolorer" style="margin: 0px; padding: 0px; line-height: 1.5;">mysql<span class="sy1" style="line-height: 1.5;">&gt;</span> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=SHOW" target="_blank">show</a> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=GLOBAL" target="_blank">global</a> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=STATUS" target="_blank">status</a><span class="sy2" style="line-height: 1.5;">;</span></div>
</div>
<p><span style="font-family: 宋体, Arial; font-size: 14px; line-height: 15px; background-color: #fffcf3;">3, 慢查询</span></p>
<div class="codecolorer-container mysql railscasts" style="margin: 0px; padding: 0px; line-height: 1.5; font-family: 宋体, Arial; font-size: 14px; background-color: #fffcf3; overflow: auto; white-space: nowrap; width: 702px;">
<div class="mysql codecolorer" style="margin: 0px; padding: 0px; line-height: 1.5;">mysql<span class="sy1" style="line-height: 1.5;">&gt;</span> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=SHOW" target="_blank">show</a> variables <a style="text-decoration: none; color: #63401b;" href="http://dev.mysql.com/doc/refman/5.1/en/non-typed-operators.html" target="_blank">like</a> <span class="st0" style="line-height: 1.5;">&#8216;<span class="es1" style="line-height: 1.5;">%</span>slow<span class="es1" style="line-height: 1.5;">%</span>&#8216;</span><span class="sy2" style="line-height: 1.5;">;</span><br />
<span class="sy1" style="line-height: 1.5;">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;-+</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> Variable_name    <span class="sy1" style="line-height: 1.5;">|</span> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=VALUE" target="_blank">Value</a> <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;-+</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> log_slow_queries <span class="sy1" style="line-height: 1.5;">|</span> OFF   <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> slow_launch_time <span class="sy1" style="line-height: 1.5;">|</span> <span class="nu0" style="line-height: 1.5;">2</span>     <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;-+</span><br />
mysql<span class="sy1" style="line-height: 1.5;">&gt;</span> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=SHOW" target="_blank">show</a> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=GLOBAL" target="_blank">global</a> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=STATUS" target="_blank">status</a> <a style="text-decoration: none; color: #63401b;" href="http://dev.mysql.com/doc/refman/5.1/en/non-typed-operators.html" target="_blank">like</a> <span class="st0" style="line-height: 1.5;">&#8216;<span class="es1" style="line-height: 1.5;">%</span>slow<span class="es1" style="line-height: 1.5;">%</span>&#8216;</span><span class="sy2" style="line-height: 1.5;">;</span><br />
<span class="sy1" style="line-height: 1.5;">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;-+</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> Variable_name       <span class="sy1" style="line-height: 1.5;">|</span> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=VALUE" target="_blank">Value</a> <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;-+</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> Slow_launch_threads <span class="sy1" style="line-height: 1.5;">|</span> <span class="nu0" style="line-height: 1.5;">0</span>     <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> Slow_queries        <span class="sy1" style="line-height: 1.5;">|</span> <span class="nu0" style="line-height: 1.5;">279</span>   <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;-+</span></div>
</div>
<p style="margin: 0px; padding: 5px 0px 0px; line-height: 1.5; font-size: 14px; font-family: 宋体, Arial; background-color: #fffcf3;">配置中关闭了记录慢查询（最好是打开，方便优化），超过2秒即为慢查询，一共有279条慢查询</p>
<p><span style="font-family: 宋体, Arial; font-size: 14px; line-height: 15px; background-color: #fffcf3;">4, 连接数</span></p>
<div class="codecolorer-container mysql railscasts" style="margin: 0px; padding: 0px; line-height: 1.5; font-family: 宋体, Arial; font-size: 14px; background-color: #fffcf3; overflow: auto; white-space: nowrap; width: 702px;">
<div class="mysql codecolorer" style="margin: 0px; padding: 0px; line-height: 1.5;">mysql<span class="sy1" style="line-height: 1.5;">&gt;</span> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=SHOW" target="_blank">show</a> variables <a style="text-decoration: none; color: #63401b;" href="http://dev.mysql.com/doc/refman/5.1/en/non-typed-operators.html" target="_blank">like</a> <span class="st0" style="line-height: 1.5;">&#8216;max<span class="es1" style="line-height: 1.5;">_</span>connections&#8217;</span><span class="sy2" style="line-height: 1.5;">;</span><br />
<span class="sy1" style="line-height: 1.5;">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;-+</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> Variable_name   <span class="sy1" style="line-height: 1.5;">|</span> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=VALUE" target="_blank">Value</a> <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;-+</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> max_connections <span class="sy1" style="line-height: 1.5;">|</span> <span class="nu0" style="line-height: 1.5;">500</span>   <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;-+</span></p>
<p>mysql<span class="sy1" style="line-height: 1.5;">&gt;</span> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=SHOW" target="_blank">show</a> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=GLOBAL" target="_blank">global</a> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=STATUS" target="_blank">status</a> <a style="text-decoration: none; color: #63401b;" href="http://dev.mysql.com/doc/refman/5.1/en/non-typed-operators.html" target="_blank">like</a> <span class="st0" style="line-height: 1.5;">&#8216;max<span class="es1" style="line-height: 1.5;">_</span>used<span class="es1" style="line-height: 1.5;">_</span>connections&#8217;</span><span class="sy2" style="line-height: 1.5;">;</span><br />
<span class="sy1" style="line-height: 1.5;">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;-+</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> Variable_name        <span class="sy1" style="line-height: 1.5;">|</span> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=VALUE" target="_blank">Value</a> <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;-+</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> Max_used_connections <span class="sy1" style="line-height: 1.5;">|</span> <span class="nu0" style="line-height: 1.5;">498</span>   <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;-+</span></div>
</div>
<p style="margin: 0px; padding: 5px 0px 0px; line-height: 1.5; font-size: 14px; font-family: 宋体, Arial; background-color: #fffcf3;">设置的最大连接数是500，而响应的连接数是498</p>
<p style="margin: 0px; padding: 5px 0px 0px; line-height: 1.5; font-size: 14px; font-family: 宋体, Arial; background-color: #fffcf3;">max_used_connections / max_connections * 100% = 99.6% （理想值 ≈ 85%）</p>
<p><span style="font-family: 宋体, Arial; font-size: 14px; line-height: 15px; background-color: #fffcf3;">5, key_buffer_size</span></p>
<p style="margin: 0px; padding: 5px 0px 0px; line-height: 1.5; font-size: 14px; font-family: 宋体, Arial; background-color: #fffcf3;">key_buffer_size是对MyISAM表性能影响最大的一个参数, 不过数据库中多为Innodb</p>
<div class="codecolorer-container mysql railscasts" style="margin: 0px; padding: 0px; line-height: 1.5; font-family: 宋体, Arial; font-size: 14px; background-color: #fffcf3; overflow: auto; white-space: nowrap; width: 702px;">
<div class="mysql codecolorer" style="margin: 0px; padding: 0px; line-height: 1.5;">mysql<span class="sy1" style="line-height: 1.5;">&gt;</span> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=SHOW" target="_blank">show</a> variables <a style="text-decoration: none; color: #63401b;" href="http://dev.mysql.com/doc/refman/5.1/en/non-typed-operators.html" target="_blank">like</a> <span class="st0" style="line-height: 1.5;">&#8216;key<span class="es1" style="line-height: 1.5;">_</span>buffer<span class="es1" style="line-height: 1.5;">_</span>size&#8217;</span><span class="sy2" style="line-height: 1.5;">;</span><br />
<span class="sy1" style="line-height: 1.5;">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;-+</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> Variable_name   <span class="sy1" style="line-height: 1.5;">|</span> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=VALUE" target="_blank">Value</a>    <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;-+</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> key_buffer_size <span class="sy1" style="line-height: 1.5;">|</span> <span class="nu0" style="line-height: 1.5;">67108864</span> <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;-+</span></p>
<p>mysql<span class="sy1" style="line-height: 1.5;">&gt;</span> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=SHOW" target="_blank">show</a> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=GLOBAL" target="_blank">global</a> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=STATUS" target="_blank">status</a> <a style="text-decoration: none; color: #63401b;" href="http://dev.mysql.com/doc/refman/5.1/en/non-typed-operators.html" target="_blank">like</a> <span class="st0" style="line-height: 1.5;">&#8216;key<span class="es1" style="line-height: 1.5;">_</span>read<span class="es1" style="line-height: 1.5;">%</span>&#8216;</span><span class="sy2" style="line-height: 1.5;">;</span><br />
<span class="sy1" style="line-height: 1.5;">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;-+</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> Variable_name     <span class="sy1" style="line-height: 1.5;">|</span> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=VALUE" target="_blank">Value</a>    <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;-+</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> Key_read_requests <span class="sy1" style="line-height: 1.5;">|</span> <span class="nu0" style="line-height: 1.5;">25629497</span> <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> Key_reads         <span class="sy1" style="line-height: 1.5;">|</span> <span class="nu0" style="line-height: 1.5;">66071</span>    <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;-+</span></div>
</div>
<p style="margin: 0px; padding: 5px 0px 0px; line-height: 1.5; font-size: 14px; font-family: 宋体, Arial; background-color: #fffcf3;">一共有25629497个索引读取请求，有66071个请求在内存中没有找到直接从硬盘读取索引，计算索引未命中缓存的概率：<br />
key_cache_miss_rate ＝ Key_reads / Key_read_requests * 100% =0.27%<br />
需要适当加大key_buffer_size</p>
<div class="codecolorer-container mysql railscasts" style="margin: 0px; padding: 0px; line-height: 1.5; font-family: 宋体, Arial; font-size: 14px; background-color: #fffcf3; overflow: auto; white-space: nowrap; width: 702px;">
<div class="mysql codecolorer" style="margin: 0px; padding: 0px; line-height: 1.5;">mysql<span class="sy1" style="line-height: 1.5;">&gt;</span> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=SHOW" target="_blank">show</a> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=GLOBAL" target="_blank">global</a> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=STATUS" target="_blank">status</a> <a style="text-decoration: none; color: #63401b;" href="http://dev.mysql.com/doc/refman/5.1/en/non-typed-operators.html" target="_blank">like</a> <span class="st0" style="line-height: 1.5;">&#8216;key<span class="es1" style="line-height: 1.5;">_</span>blocks<span class="es1" style="line-height: 1.5;">_</span>u<span class="es1" style="line-height: 1.5;">%</span>&#8216;</span><span class="sy2" style="line-height: 1.5;">;</span><br />
<span class="sy1" style="line-height: 1.5;">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;-+</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> Variable_name     <span class="sy1" style="line-height: 1.5;">|</span> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=VALUE" target="_blank">Value</a> <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;-+</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> Key_blocks_unused <span class="sy1" style="line-height: 1.5;">|</span> <span class="nu0" style="line-height: 1.5;">10285</span> <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> Key_blocks_used   <span class="sy1" style="line-height: 1.5;">|</span> <span class="nu0" style="line-height: 1.5;">47705</span> <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;-+</span></div>
</div>
<p style="margin: 0px; padding: 5px 0px 0px; line-height: 1.5; font-size: 14px; font-family: 宋体, Arial; background-color: #fffcf3;">Key_blocks_unused表示未使用的缓存簇(blocks)数，Key_blocks_used表示曾经用到的最大的blocks数<br />
Key_blocks_used / (Key_blocks_unused + Key_blocks_used) * 100% ≈ 18% （理想值 ≈ 80%）</p>
<p><span style="font-family: 宋体, Arial; font-size: 14px; line-height: 15px; background-color: #fffcf3;">6, 临时表</span></p>
<div class="codecolorer-container mysql railscasts" style="margin: 0px; padding: 0px; line-height: 1.5; font-family: 宋体, Arial; font-size: 14px; background-color: #fffcf3; overflow: auto; white-space: nowrap; width: 702px;">
<div class="mysql codecolorer" style="margin: 0px; padding: 0px; line-height: 1.5;">mysql<span class="sy1" style="line-height: 1.5;">&gt;</span> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=SHOW" target="_blank">show</a> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=GLOBAL" target="_blank">global</a> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=STATUS" target="_blank">status</a> <a style="text-decoration: none; color: #63401b;" href="http://dev.mysql.com/doc/refman/5.1/en/non-typed-operators.html" target="_blank">like</a> <span class="st0" style="line-height: 1.5;">&#8216;created<span class="es1" style="line-height: 1.5;">_</span>tmp<span class="es1" style="line-height: 1.5;">%</span>&#8216;</span><span class="sy2" style="line-height: 1.5;">;</span><br />
<span class="sy1" style="line-height: 1.5;">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;+</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> Variable_name           <span class="sy1" style="line-height: 1.5;">|</span> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=VALUE" target="_blank">Value</a>   <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;+</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> Created_tmp_disk_tables <span class="sy1" style="line-height: 1.5;">|</span> <span class="nu0" style="line-height: 1.5;">4184337</span> <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> Created_tmp_files       <span class="sy1" style="line-height: 1.5;">|</span> <span class="nu0" style="line-height: 1.5;">4124</span>    <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> Created_tmp_tables      <span class="sy1" style="line-height: 1.5;">|</span> <span class="nu0" style="line-height: 1.5;">4215028</span> <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;+</span></div>
</div>
<p style="margin: 0px; padding: 5px 0px 0px; line-height: 1.5; font-size: 14px; font-family: 宋体, Arial; background-color: #fffcf3;">每次创建临时表，Created_tmp_tables增加，如果是在磁盘上创建临时表，Created_tmp_disk_tables也增加,Created_tmp_files表示MySQL服务创建的临时文件文件数：<br />
Created_tmp_disk_tables / Created_tmp_tables * 100% ＝ 99% （理想值&lt;= 25%）</p>
<div class="codecolorer-container mysql railscasts" style="margin: 0px; padding: 0px; line-height: 1.5; font-family: 宋体, Arial; font-size: 14px; background-color: #fffcf3; overflow: auto; white-space: nowrap; width: 702px;">
<div class="mysql codecolorer" style="margin: 0px; padding: 0px; line-height: 1.5;">mysql<span class="sy1" style="line-height: 1.5;">&gt;</span> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=SHOW" target="_blank">show</a> variables <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=WHERE" target="_blank">where</a> Variable_name <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=IN" target="_blank">in</a> <span class="br0" style="line-height: 1.5;">(</span><span class="st0" style="line-height: 1.5;">&#8216;tmp<span class="es1" style="line-height: 1.5;">_</span>table<span class="es1" style="line-height: 1.5;">_</span>size&#8217;</span><span class="sy2" style="line-height: 1.5;">,</span> <span class="st0" style="line-height: 1.5;">&#8216;max<span class="es1" style="line-height: 1.5;">_</span>heap<span class="es1" style="line-height: 1.5;">_</span>table<span class="es1" style="line-height: 1.5;">_</span>size&#8217;</span><span class="br0" style="line-height: 1.5;">)</span><span class="sy2" style="line-height: 1.5;">;</span><br />
<span class="sy1" style="line-height: 1.5;">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8211;+</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> Variable_name       <span class="sy1" style="line-height: 1.5;">|</span> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=VALUE" target="_blank">Value</a>     <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8211;+</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> max_heap_table_size <span class="sy1" style="line-height: 1.5;">|</span> <span class="nu0" style="line-height: 1.5;">134217728</span> <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> tmp_table_size      <span class="sy1" style="line-height: 1.5;">|</span> <span class="nu0" style="line-height: 1.5;">134217728</span> <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8211;+</span></div>
</div>
<p style="margin: 0px; padding: 5px 0px 0px; line-height: 1.5; font-size: 14px; font-family: 宋体, Arial; background-color: #fffcf3;">需要增加tmp_table_size</p>
<p><span style="font-family: 宋体, Arial; font-size: 14px; line-height: 15px; background-color: #fffcf3;">7, open table 的情况</span></p>
<div class="codecolorer-container mysql railscasts" style="margin: 0px; padding: 0px; line-height: 1.5; font-family: 宋体, Arial; font-size: 14px; background-color: #fffcf3; overflow: auto; white-space: nowrap; width: 702px;">
<div class="mysql codecolorer" style="margin: 0px; padding: 0px; line-height: 1.5;">mysql<span class="sy1" style="line-height: 1.5;">&gt;</span> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=SHOW" target="_blank">show</a> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=GLOBAL" target="_blank">global</a> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=STATUS" target="_blank">status</a> <a style="text-decoration: none; color: #63401b;" href="http://dev.mysql.com/doc/refman/5.1/en/non-typed-operators.html" target="_blank">like</a> <span class="st0" style="line-height: 1.5;">&#8216;open<span class="es1" style="line-height: 1.5;">%</span>tables<span class="es1" style="line-height: 1.5;">%</span>&#8216;</span><span class="sy2" style="line-height: 1.5;">;</span><br />
<span class="sy1" style="line-height: 1.5;">+&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;-+</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> Variable_name <span class="sy1" style="line-height: 1.5;">|</span> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=VALUE" target="_blank">Value</a> <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">+&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;-+</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> Open_tables   <span class="sy1" style="line-height: 1.5;">|</span> <span class="nu0" style="line-height: 1.5;">1024</span>  <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> Opened_tables <span class="sy1" style="line-height: 1.5;">|</span> <span class="nu0" style="line-height: 1.5;">1465</span>  <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">+&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;-+</span></div>
</div>
<p style="margin: 0px; padding: 5px 0px 0px; line-height: 1.5; font-size: 14px; font-family: 宋体, Arial; background-color: #fffcf3;">Open_tables 表示打开表的数量，Opened_tables表示打开过的表数量，如果Opened_tables数量过大，说明配置中 table_cache(5.1.3之后这个值叫做table_open_cache)值可能太小，我们查询一下服务器table_cache值</p>
<div class="codecolorer-container mysql railscasts" style="margin: 0px; padding: 0px; line-height: 1.5; font-family: 宋体, Arial; font-size: 14px; background-color: #fffcf3; overflow: auto; white-space: nowrap; width: 702px;">
<div class="mysql codecolorer" style="margin: 0px; padding: 0px; line-height: 1.5;">mysql<span class="sy1" style="line-height: 1.5;">&gt;</span> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=SHOW" target="_blank">show</a> variables <a style="text-decoration: none; color: #63401b;" href="http://dev.mysql.com/doc/refman/5.1/en/non-typed-operators.html" target="_blank">like</a> <span class="st0" style="line-height: 1.5;">&#8216;table<span class="es1" style="line-height: 1.5;">_</span>cache&#8217;</span><span class="sy2" style="line-height: 1.5;">;</span><br />
<span class="sy1" style="line-height: 1.5;">+&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;-+</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> Variable_name <span class="sy1" style="line-height: 1.5;">|</span> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=VALUE" target="_blank">Value</a> <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">+&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;-+</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> table_cache   <span class="sy1" style="line-height: 1.5;">|</span> <span class="nu0" style="line-height: 1.5;">1024</span>  <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">+&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;-+</span></div>
</div>
<p style="margin: 0px; padding: 5px 0px 0px; line-height: 1.5; font-size: 14px; font-family: 宋体, Arial; background-color: #fffcf3;">Open_tables / Opened_tables * 100% =69% 理想值 （&gt;= 85%）<br />
Open_tables / table_cache * 100% = 100% 理想值 (&lt;= 95%)</p>
<p><span style="font-family: 宋体, Arial; font-size: 14px; line-height: 15px; background-color: #fffcf3;">8, 进程使用情况</span></p>
<div class="codecolorer-container mysql railscasts" style="margin: 0px; padding: 0px; line-height: 1.5; font-family: 宋体, Arial; font-size: 14px; background-color: #fffcf3; overflow: auto; white-space: nowrap; width: 702px;">
<div class="mysql codecolorer" style="margin: 0px; padding: 0px; line-height: 1.5;">mysql<span class="sy1" style="line-height: 1.5;">&gt;</span> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=SHOW" target="_blank">show</a> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=GLOBAL" target="_blank">global</a> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=STATUS" target="_blank">status</a> <a style="text-decoration: none; color: #63401b;" href="http://dev.mysql.com/doc/refman/5.1/en/non-typed-operators.html" target="_blank">like</a> <span class="st0" style="line-height: 1.5;">&#8216;Thread<span class="es1" style="line-height: 1.5;">%</span>&#8216;</span><span class="sy2" style="line-height: 1.5;">;</span><br />
<span class="sy1" style="line-height: 1.5;">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;-+</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> Variable_name     <span class="sy1" style="line-height: 1.5;">|</span> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=VALUE" target="_blank">Value</a> <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;-+</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> Threads_cached    <span class="sy1" style="line-height: 1.5;">|</span> <span class="nu0" style="line-height: 1.5;">31</span>    <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> Threads_connected <span class="sy1" style="line-height: 1.5;">|</span> <span class="nu0" style="line-height: 1.5;">239</span>   <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> Threads_created   <span class="sy1" style="line-height: 1.5;">|</span> <span class="nu0" style="line-height: 1.5;">2914</span>  <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> Threads_running   <span class="sy1" style="line-height: 1.5;">|</span> <span class="nu0" style="line-height: 1.5;">4</span>     <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;-+</span></div>
</div>
<p style="margin: 0px; padding: 5px 0px 0px; line-height: 1.5; font-size: 14px; font-family: 宋体, Arial; background-color: #fffcf3;">如果我们在MySQL服务器配置文件中设置了thread_cache_size，当客户端断开之后，服务器处理此客户的线程将会缓存起来以响应下 一个客户而不是销毁（前提是缓存数未达上限）。Threads_created表示创建过的线程数，如果发现Threads_created值过大的话， 表明 MySQL服务器一直在创建线程，这也是比较耗资源，可以适当增加配置文件中thread_cache_size值，查询服务器 thread_cache_size配置：</p>
<div class="codecolorer-container mysql railscasts" style="margin: 0px; padding: 0px; line-height: 1.5; font-family: 宋体, Arial; font-size: 14px; background-color: #fffcf3; overflow: auto; white-space: nowrap; width: 702px;">
<div class="mysql codecolorer" style="margin: 0px; padding: 0px; line-height: 1.5;">mysql<span class="sy1" style="line-height: 1.5;">&gt;</span> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=SHOW" target="_blank">show</a> variables <a style="text-decoration: none; color: #63401b;" href="http://dev.mysql.com/doc/refman/5.1/en/non-typed-operators.html" target="_blank">like</a> <span class="st0" style="line-height: 1.5;">&#8216;thread<span class="es1" style="line-height: 1.5;">_</span>cache<span class="es1" style="line-height: 1.5;">_</span>size&#8217;</span><span class="sy2" style="line-height: 1.5;">;</span><br />
<span class="sy1" style="line-height: 1.5;">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;-+</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> Variable_name     <span class="sy1" style="line-height: 1.5;">|</span> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=VALUE" target="_blank">Value</a> <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;-+</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> thread_cache_size <span class="sy1" style="line-height: 1.5;">|</span> <span class="nu0" style="line-height: 1.5;">32</span>    <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;-+</span></div>
</div>
<p><span style="font-family: 宋体, Arial; font-size: 14px; line-height: 15px; background-color: #fffcf3;">9, 查询缓存(query cache)</span></p>
<div class="codecolorer-container mysql railscasts" style="margin: 0px; padding: 0px; line-height: 1.5; font-family: 宋体, Arial; font-size: 14px; background-color: #fffcf3; overflow: auto; white-space: nowrap; width: 702px;">
<div class="mysql codecolorer" style="margin: 0px; padding: 0px; line-height: 1.5;">mysql<span class="sy1" style="line-height: 1.5;">&gt;</span> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=SHOW" target="_blank">show</a> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=GLOBAL" target="_blank">global</a> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=STATUS" target="_blank">status</a> <a style="text-decoration: none; color: #63401b;" href="http://dev.mysql.com/doc/refman/5.1/en/non-typed-operators.html" target="_blank">like</a> <span class="st0" style="line-height: 1.5;">&#8216;qcache<span class="es1" style="line-height: 1.5;">%</span>&#8216;</span><span class="sy2" style="line-height: 1.5;">;</span><br />
<span class="sy1" style="line-height: 1.5;">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;-+</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> Variable_name           <span class="sy1" style="line-height: 1.5;">|</span> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=VALUE" target="_blank">Value</a>    <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;-+</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> Qcache_free_blocks      <span class="sy1" style="line-height: 1.5;">|</span> <span class="nu0" style="line-height: 1.5;">2226</span>     <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> Qcache_free_memory      <span class="sy1" style="line-height: 1.5;">|</span> <span class="nu0" style="line-height: 1.5;">10794944</span> <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> Qcache_hits             <span class="sy1" style="line-height: 1.5;">|</span> <span class="nu0" style="line-height: 1.5;">5385458</span>  <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> Qcache_inserts          <span class="sy1" style="line-height: 1.5;">|</span> <span class="nu0" style="line-height: 1.5;">1806301</span>  <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> Qcache_lowmem_prunes    <span class="sy1" style="line-height: 1.5;">|</span> <span class="nu0" style="line-height: 1.5;">433101</span>   <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> Qcache_not_cached       <span class="sy1" style="line-height: 1.5;">|</span> <span class="nu0" style="line-height: 1.5;">4429464</span>  <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> Qcache_queries_in_cache <span class="sy1" style="line-height: 1.5;">|</span> <span class="nu0" style="line-height: 1.5;">7168</span>     <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> Qcache_total_blocks     <span class="sy1" style="line-height: 1.5;">|</span> <span class="nu0" style="line-height: 1.5;">16820</span>    <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;-+</span></div>
</div>
<p style="margin: 0px; padding: 5px 0px 0px; line-height: 1.5; font-size: 14px; font-family: 宋体, Arial; background-color: #fffcf3;">Qcache_free_blocks：缓存中相邻内存块的个数。数目大说明可能有碎片。FLUSH QUERY CACHE会对缓存中的碎片进行整理，从而得到一个空闲块。<br />
Qcache_free_memory：缓存中的空闲内存。<br />
Qcache_hits：每次查询在缓存中命中时就增大<br />
Qcache_inserts：每次插入一个查询时就增大。命中次数除以插入次数就是不中比率。<br />
Qcache_lowmem_prunes：缓存出现内存不足并且必须要进行清理以便为更多查询提供空间的次数。这个数字最好长时间来看；如果这个数字在 不断增长，就表示可能碎片非常严重，或者内存很少。（上面的 free_blocks和free_memory可以告诉您属于哪种情况）<br />
Qcache_not_cached：不适合进行缓存的查询的数量，通常是由于这些查询不是 SELECT 语句或者用了now()之类的函数。<br />
Qcache_queries_in_cache：当前缓存的查询（和响应）的数量。<br />
Qcache_total_blocks：缓存中块的数量。</p>
<p style="margin: 0px; padding: 5px 0px 0px; line-height: 1.5; font-size: 14px; font-family: 宋体, Arial; background-color: #fffcf3;">我们再查询一下服务器关于query_cache的配置：</p>
<div class="codecolorer-container mysql railscasts" style="margin: 0px; padding: 0px; line-height: 1.5; font-family: 宋体, Arial; font-size: 14px; background-color: #fffcf3; overflow: auto; white-space: nowrap; width: 702px;">
<div class="mysql codecolorer" style="margin: 0px; padding: 0px; line-height: 1.5;">mysql<span class="sy1" style="line-height: 1.5;">&gt;</span> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=SHOW" target="_blank">show</a> variables <a style="text-decoration: none; color: #63401b;" href="http://dev.mysql.com/doc/refman/5.1/en/non-typed-operators.html" target="_blank">like</a> <span class="st0" style="line-height: 1.5;">&#8216;query<span class="es1" style="line-height: 1.5;">_</span>cache<span class="es1" style="line-height: 1.5;">%</span>&#8216;</span><span class="sy2" style="line-height: 1.5;">;</span><br />
<span class="sy1" style="line-height: 1.5;">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;-+</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> Variable_name                <span class="sy1" style="line-height: 1.5;">|</span> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=VALUE" target="_blank">Value</a>    <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;-+</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> query_cache_limit            <span class="sy1" style="line-height: 1.5;">|</span> <span class="nu0" style="line-height: 1.5;">33554432</span> <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> query_cache_min_res_unit     <span class="sy1" style="line-height: 1.5;">|</span> <span class="nu0" style="line-height: 1.5;">4096</span>     <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> query_cache_size             <span class="sy1" style="line-height: 1.5;">|</span> <span class="nu0" style="line-height: 1.5;">33554432</span> <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> query_cache_type             <span class="sy1" style="line-height: 1.5;">|</span> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=ON" target="_blank">ON</a>       <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> query_cache_wlock_invalidate <span class="sy1" style="line-height: 1.5;">|</span> OFF      <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;-+</span></div>
</div>
<p style="margin: 0px; padding: 5px 0px 0px; line-height: 1.5; font-size: 14px; font-family: 宋体, Arial; background-color: #fffcf3;">各字段的解释：</p>
<p style="margin: 0px; padding: 5px 0px 0px; line-height: 1.5; font-size: 14px; font-family: 宋体, Arial; background-color: #fffcf3;">query_cache_limit：超过此大小的查询将不缓存<br />
query_cache_min_res_unit：缓存块的最小大小<br />
query_cache_size：查询缓存大小<br />
query_cache_type：缓存类型，决定缓存什么样的查询，示例中表示不缓存 select sql_no_cache 查询<br />
query_cache_wlock_invalidate：当有其他客户端正在对MyISAM表进行写操作时，如果查询在query cache中，是否返回cache结果还是等写操作完成再读表获取结果。</p>
<p style="margin: 0px; padding: 5px 0px 0px; line-height: 1.5; font-size: 14px; font-family: 宋体, Arial; background-color: #fffcf3;">query_cache_min_res_unit的配置是一柄”双刃剑”，默认是4KB，设置值大对大数据查询有好处，但如果你的查询都是小数据查询，就容易造成内存碎片和浪费。</p>
<p style="margin: 0px; padding: 5px 0px 0px; line-height: 1.5; font-size: 14px; font-family: 宋体, Arial; background-color: #fffcf3;">查询缓存碎片率 = Qcache_free_blocks / Qcache_total_blocks * 100%</p>
<p style="margin: 0px; padding: 5px 0px 0px; line-height: 1.5; font-size: 14px; font-family: 宋体, Arial; background-color: #fffcf3;">如果查询缓存碎片率超过20%，可以用FLUSH QUERY CACHE整理缓存碎片，或者试试减小query_cache_min_res_unit，如果你的查询都是小数据量的话。</p>
<p style="margin: 0px; padding: 5px 0px 0px; line-height: 1.5; font-size: 14px; font-family: 宋体, Arial; background-color: #fffcf3;">查询缓存利用率 = (query_cache_size – Qcache_free_memory) / query_cache_size * 100%</p>
<p style="margin: 0px; padding: 5px 0px 0px; line-height: 1.5; font-size: 14px; font-family: 宋体, Arial; background-color: #fffcf3;">查询缓存利用率在25%以下的话说明query_cache_size设置的过大，可适当减小；查询缓存利用率在80％以上而且Qcache_lowmem_prunes &gt; 50的话说明query_cache_size可能有点小，要不就是碎片太多。</p>
<p style="margin: 0px; padding: 5px 0px 0px; line-height: 1.5; font-size: 14px; font-family: 宋体, Arial; background-color: #fffcf3;">查询缓存命中率 = (Qcache_hits – Qcache_inserts) / Qcache_hits * 100%</p>
<p style="margin: 0px; padding: 5px 0px 0px; line-height: 1.5; font-size: 14px; font-family: 宋体, Arial; background-color: #fffcf3;">示例服务器 查询缓存碎片率 ＝ 20.46％，查询缓存利用率 ＝ 62.26％，查询缓存命中率 ＝ 1.94％，命中率很差，可能写操作比较频繁吧，而且可能有些碎片。</p>
<p><span style="font-family: 宋体, Arial; font-size: 14px; line-height: 15px; background-color: #fffcf3;">10, 排序使用情况</span></p>
<div class="codecolorer-container mysql railscasts" style="margin: 0px; padding: 0px; line-height: 1.5; font-family: 宋体, Arial; font-size: 14px; background-color: #fffcf3; overflow: auto; white-space: nowrap; width: 702px;">
<div class="mysql codecolorer" style="margin: 0px; padding: 0px; line-height: 1.5;">mysql<span class="sy1" style="line-height: 1.5;">&gt;</span> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=SHOW" target="_blank">show</a> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=GLOBAL" target="_blank">global</a> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=STATUS" target="_blank">status</a> <a style="text-decoration: none; color: #63401b;" href="http://dev.mysql.com/doc/refman/5.1/en/non-typed-operators.html" target="_blank">like</a> <span class="st0" style="line-height: 1.5;">&#8216;sort<span class="es1" style="line-height: 1.5;">%</span>&#8216;</span><span class="sy2" style="line-height: 1.5;">;</span><br />
<span class="sy1" style="line-height: 1.5;">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;-+</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> Variable_name     <span class="sy1" style="line-height: 1.5;">|</span> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=VALUE" target="_blank">Value</a>    <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;-+</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> Sort_merge_passes <span class="sy1" style="line-height: 1.5;">|</span> <span class="nu0" style="line-height: 1.5;">2136</span>     <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> Sort_range        <span class="sy1" style="line-height: 1.5;">|</span> <span class="nu0" style="line-height: 1.5;">81888</span>    <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> Sort_rows         <span class="sy1" style="line-height: 1.5;">|</span> <span class="nu0" style="line-height: 1.5;">35918141</span> <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> Sort_scan         <span class="sy1" style="line-height: 1.5;">|</span> <span class="nu0" style="line-height: 1.5;">55269</span>    <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;-+</span></div>
</div>
<p style="margin: 0px; padding: 5px 0px 0px; line-height: 1.5; font-size: 14px; font-family: 宋体, Arial; background-color: #fffcf3;">Sort_merge_passes 包括两步。MySQL 首先会尝试在内存中做排序，使用的内存大小由系统变量 Sort_buffer_size 决定，如果它的大小不够把所有的记录都读到内存中，MySQL 就会把每次在内存中排序的结果存到临时文件中，等 MySQL 找到所有记录之后，再把临时文件中的记录做一次排序。这再次排序就会增加 Sort_merge_passes。实际上，MySQL 会用另一个临时文件来存再次排序的结果，所以通常会看到 Sort_merge_passes 增加的数值是建临时文件数的两倍。因为用到了临时文件，所以速度可能会比较慢，增加 Sort_buffer_size 会减少 Sort_merge_passes 和 创建临时文件的次数。但盲目的增加 Sort_buffer_size 并不一定能提高速度，见 How fast can you sort data with MySQL?（引自http://qroom.blogspot.com/2007/09/mysql-select-sort.html）</p>
<p style="margin: 0px; padding: 5px 0px 0px; line-height: 1.5; font-size: 14px; font-family: 宋体, Arial; background-color: #fffcf3;">另外，增加read_rnd_buffer_size(3.2.3是record_rnd_buffer_size)的值对排序的操作也有一点的好 处，参见：http://www.mysqlperformanceblog.com/2007/07/24/what-exactly-is- read_rnd_buffer_size/</p>
<p><span style="font-family: 宋体, Arial; font-size: 14px; line-height: 15px; background-color: #fffcf3;">11, 文件打开数(open_files)</span></p>
<div class="codecolorer-container mysql railscasts" style="margin: 0px; padding: 0px; line-height: 1.5; font-family: 宋体, Arial; font-size: 14px; background-color: #fffcf3; overflow: auto; white-space: nowrap; width: 702px;">
<div class="mysql codecolorer" style="margin: 0px; padding: 0px; line-height: 1.5;">mysql<span class="sy1" style="line-height: 1.5;">&gt;</span> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=SHOW" target="_blank">show</a> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=GLOBAL" target="_blank">global</a> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=STATUS" target="_blank">status</a> <a style="text-decoration: none; color: #63401b;" href="http://dev.mysql.com/doc/refman/5.1/en/non-typed-operators.html" target="_blank">like</a> <span class="st0" style="line-height: 1.5;">&#8216;open<span class="es1" style="line-height: 1.5;">_</span>files&#8217;</span><span class="sy2" style="line-height: 1.5;">;</span><br />
<span class="sy1" style="line-height: 1.5;">+&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;-+</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> Variable_name <span class="sy1" style="line-height: 1.5;">|</span> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=VALUE" target="_blank">Value</a> <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">+&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;-+</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> Open_files    <span class="sy1" style="line-height: 1.5;">|</span> <span class="nu0" style="line-height: 1.5;">821</span>   <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">+&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;-+</span></p>
<p>mysql<span class="sy1" style="line-height: 1.5;">&gt;</span> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=SHOW" target="_blank">show</a> variables <a style="text-decoration: none; color: #63401b;" href="http://dev.mysql.com/doc/refman/5.1/en/non-typed-operators.html" target="_blank">like</a> <span class="st0" style="line-height: 1.5;">&#8216;open<span class="es1" style="line-height: 1.5;">_</span>files<span class="es1" style="line-height: 1.5;">_</span>limit&#8217;</span><span class="sy2" style="line-height: 1.5;">;</span><br />
<span class="sy1" style="line-height: 1.5;">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;-+</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> Variable_name    <span class="sy1" style="line-height: 1.5;">|</span> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=VALUE" target="_blank">Value</a> <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;-+</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> open_files_limit <span class="sy1" style="line-height: 1.5;">|</span> <span class="nu0" style="line-height: 1.5;">65535</span> <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;-+</span></div>
</div>
<p style="margin: 0px; padding: 5px 0px 0px; line-height: 1.5; font-size: 14px; font-family: 宋体, Arial; background-color: #fffcf3;">比较合适的设置：Open_files / open_files_limit * 100% &lt;= 75％</p>
<p style="margin: 0px; padding: 5px 0px 0px; line-height: 1.5; font-size: 14px; font-family: 宋体, Arial; background-color: #fffcf3;">正常</p>
<p><span style="font-family: 宋体, Arial; font-size: 14px; line-height: 15px; background-color: #fffcf3;">12, 表锁情况</span></p>
<div class="codecolorer-container mysql railscasts" style="margin: 0px; padding: 0px; line-height: 1.5; font-family: 宋体, Arial; font-size: 14px; background-color: #fffcf3; overflow: auto; white-space: nowrap; width: 702px;">
<div class="mysql codecolorer" style="margin: 0px; padding: 0px; line-height: 1.5;">mysql<span class="sy1" style="line-height: 1.5;">&gt;</span> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=SHOW" target="_blank">show</a> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=GLOBAL" target="_blank">global</a> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=STATUS" target="_blank">status</a> <a style="text-decoration: none; color: #63401b;" href="http://dev.mysql.com/doc/refman/5.1/en/non-typed-operators.html" target="_blank">like</a> <span class="st0" style="line-height: 1.5;">&#8216;table<span class="es1" style="line-height: 1.5;">_</span>locks<span class="es1" style="line-height: 1.5;">%</span>&#8216;</span><span class="sy2" style="line-height: 1.5;">;</span><br />
<span class="sy1" style="line-height: 1.5;">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;+</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> Variable_name         <span class="sy1" style="line-height: 1.5;">|</span> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=VALUE" target="_blank">Value</a>   <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;+</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> Table_locks_immediate <span class="sy1" style="line-height: 1.5;">|</span> <span class="nu0" style="line-height: 1.5;">4257944</span> <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> Table_locks_waited    <span class="sy1" style="line-height: 1.5;">|</span> <span class="nu0" style="line-height: 1.5;">25182</span>   <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;+</span></div>
</div>
<p style="margin: 0px; padding: 5px 0px 0px; line-height: 1.5; font-size: 14px; font-family: 宋体, Arial; background-color: #fffcf3;">Table_locks_immediate 表示立即释放表锁数，Table_locks_waited表示需要等待的表锁数，如果 Table_locks_immediate / Table_locks_waited &gt; 5000，最好采用InnoDB引擎，因为InnoDB是行锁而MyISAM是表锁，对于高并发写入的应用InnoDB效果会好些.</p>
<p><span style="font-family: 宋体, Arial; font-size: 14px; line-height: 15px; background-color: #fffcf3;">13. 表扫描情况</span></p>
<div class="codecolorer-container mysql railscasts" style="margin: 0px; padding: 0px; line-height: 1.5; font-family: 宋体, Arial; font-size: 14px; background-color: #fffcf3; overflow: auto; white-space: nowrap; width: 702px;">
<div class="mysql codecolorer" style="margin: 0px; padding: 0px; line-height: 1.5;">mysql<span class="sy1" style="line-height: 1.5;">&gt;</span> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=SHOW" target="_blank">show</a> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=GLOBAL" target="_blank">global</a> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=STATUS" target="_blank">status</a> <a style="text-decoration: none; color: #63401b;" href="http://dev.mysql.com/doc/refman/5.1/en/non-typed-operators.html" target="_blank">like</a> <span class="st0" style="line-height: 1.5;">&#8216;handler<span class="es1" style="line-height: 1.5;">_</span>read<span class="es1" style="line-height: 1.5;">%</span>&#8216;</span><span class="sy2" style="line-height: 1.5;">;</span><br />
<span class="sy1" style="line-height: 1.5;">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;&#8211;+</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> Variable_name         <span class="sy1" style="line-height: 1.5;">|</span> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=VALUE" target="_blank">Value</a>     <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;&#8211;+</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> Handler_read_first    <span class="sy1" style="line-height: 1.5;">|</span> <span class="nu0" style="line-height: 1.5;">108763</span>    <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> Handler_read_key      <span class="sy1" style="line-height: 1.5;">|</span> <span class="nu0" style="line-height: 1.5;">92813521</span>  <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> Handler_read_next     <span class="sy1" style="line-height: 1.5;">|</span> <span class="nu0" style="line-height: 1.5;">486650793</span> <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> Handler_read_prev     <span class="sy1" style="line-height: 1.5;">|</span> <span class="nu0" style="line-height: 1.5;">688726</span>    <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> Handler_read_rnd      <span class="sy1" style="line-height: 1.5;">|</span> <span class="nu0" style="line-height: 1.5;">9321362</span>   <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> Handler_read_rnd_next <span class="sy1" style="line-height: 1.5;">|</span> <span class="nu0" style="line-height: 1.5;">153086384</span> <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;&#8211;+</span></div>
</div>
<p style="margin: 0px; padding: 5px 0px 0px; line-height: 1.5; font-size: 14px; font-family: 宋体, Arial; background-color: #fffcf3;">各字段解释参见http://hi.baidu.com/thinkinginlamp/blog/item/31690cd7c4bc5cdaa144df9c.html，调出服务器完成的查询请求次数：</p>
<div class="codecolorer-container mysql railscasts" style="margin: 0px; padding: 0px; line-height: 1.5; font-family: 宋体, Arial; font-size: 14px; background-color: #fffcf3; overflow: auto; white-space: nowrap; width: 702px;">
<div class="mysql codecolorer" style="margin: 0px; padding: 0px; line-height: 1.5;">mysql<span class="sy1" style="line-height: 1.5;">&gt;</span> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=SHOW" target="_blank">show</a> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=GLOBAL" target="_blank">global</a> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=STATUS" target="_blank">status</a> <a style="text-decoration: none; color: #63401b;" href="http://dev.mysql.com/doc/refman/5.1/en/non-typed-operators.html" target="_blank">like</a> <span class="st0" style="line-height: 1.5;">&#8216;com<span class="es1" style="line-height: 1.5;">_</span>select&#8217;</span><span class="sy2" style="line-height: 1.5;">;</span><br />
<span class="sy1" style="line-height: 1.5;">+&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;+</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> Variable_name <span class="sy1" style="line-height: 1.5;">|</span> <a style="text-decoration: none; color: #63401b;" href="http://search.mysql.com/search?site=refman-%35%31&amp;q=VALUE" target="_blank">Value</a>   <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">+&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;+</span><br />
<span class="sy1" style="line-height: 1.5;">|</span> Com_select    <span class="sy1" style="line-height: 1.5;">|</span> <span class="nu0" style="line-height: 1.5;">2693147</span> <span class="sy1" style="line-height: 1.5;">|</span><br />
<span class="sy1" style="line-height: 1.5;">+&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;+</span></div>
</div>
<p style="margin: 0px; padding: 5px 0px 0px; line-height: 1.5; font-size: 14px; font-family: 宋体, Arial; background-color: #fffcf3;">计算表扫描率：</p>
<p style="margin: 0px; padding: 5px 0px 0px; line-height: 1.5; font-size: 14px; font-family: 宋体, Arial; background-color: #fffcf3;">表扫描率 ＝ Handler_read_rnd_next / Com_select</p>
<p style="margin: 0px; padding: 5px 0px 0px; line-height: 1.5; font-size: 14px; font-family: 宋体, Arial; background-color: #fffcf3;">如果表扫描率超过4000，说明进行了太多表扫描，很有可能索引没有建好，增加read_buffer_size值会有一些好处，但最好不要超过8MB。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chenxinxing.com/2012/04/16/312/index.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Android技术讨论 &#8211; 数据库位置</title>
		<link>http://www.chenxinxing.com/2012/03/04/309/index.html</link>
		<comments>http://www.chenxinxing.com/2012/03/04/309/index.html#comments</comments>
		<pubDate>Sun, 04 Mar 2012 13:02:03 +0000</pubDate>
		<dc:creator>chenxx</dc:creator>
				<category><![CDATA[Android]]></category>

		<guid isPermaLink="false">http://www.chenxinxing.com/?p=309</guid>
		<description><![CDATA[数据库: 联络人含通话记录数据库：/data/data/com.android.providers.contacts/databases/contacts.db 媒体库貌似记录铃声设置等信息: /data/data/com.android.providers.media/internal.db 系统设置: /data/data/com.android.providers.settings/databases/settings.db 短信库: /data/data/com.android.providers.telephony/databases/mmssms.db Web设置: /data.data/com.android.settings/databases/webview.db 地图搜索历史记录:/data/data/com.google.android.apps.maps/databases/search_history.db 帐号库?内含androidId信息 : /data/data/com.google.android.googleapps/databases/accounts.db 铃声: /system/media/audio 时区设置: /data/property/persist.sys.timezone &#160;]]></description>
			<content:encoded><![CDATA[<p>数据库:</p>
<p>联络人含通话记录数据库：/data/data/com.android.providers.contacts/databases/contacts.db</p>
<p>媒体库貌似记录铃声设置等信息: /data/data/com.android.providers.media/internal.db</p>
<p>系统设置: /data/data/com.android.providers.settings/databases/settings.db</p>
<p>短信库: /data/data/com.android.providers.telephony/databases/mmssms.db</p>
<p>Web设置: /data.data/com.android.settings/databases/webview.db</p>
<p>地图搜索历史记录:/data/data/com.google.android.apps.maps/databases/search_history.db</p>
<p>帐号库?内含androidId信息 : /data/data/com.google.android.googleapps/databases/accounts.db</p>
<p>铃声: /system/media/audio</p>
<p>时区设置: /data/property/persist.sys.timezone</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chenxinxing.com/2012/03/04/309/index.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Android权限列表permission说明</title>
		<link>http://www.chenxinxing.com/2012/02/21/307/index.html</link>
		<comments>http://www.chenxinxing.com/2012/02/21/307/index.html#comments</comments>
		<pubDate>Tue, 21 Feb 2012 12:53:12 +0000</pubDate>
		<dc:creator>chenxx</dc:creator>
				<category><![CDATA[Android]]></category>

		<guid isPermaLink="false">http://www.chenxinxing.com/?p=307</guid>
		<description><![CDATA[Android权限列表permission说明 Android权限分的很细，但命名比较人性化，Android permission比Symbian Capabilities有了不少改进，下面就来看看权限许可都有哪些定义吧，发现还是比较繁多的，如果发现你的程序某个地方调试错误很可能是 Android permission的访问控制在作怪，这也是为了安全防止手机成为病毒的场所。Android开发网获取到的消息来看不用购买高昂的数字签名证书，权限 许可权由用户决定而不是手机制造商和平台提供商，这一点不得不说明为Android开发人员着想，下面的信息都是需要添加在 androidmanifest.xml文件中。 ACCESS_COARSE_LOCATION是有关错略的位置信息获取，比如说MyLocation API调用获取的Cellid等定位信息必需添加android.permission.ACCESS_COARSE_LOCATION这个声明 ACCESS_FINE_LOCATION、ACCESS_LOCATION_EXTRA_COMMANDS、 ACCESS_MOCK_LOCATION是有关GPS定位获取的信息使用GPS LocationProvider类的相关定位信息必需声明android.permission.ACCESS_FINE_LOCATION、 android.permission.ACCESS_LOCATION_EXTRA_COMMANDS和 android.permission.ACCESS_MOCK_LOCATION ACCESS_NETWORK_STATE是获取网络状态的权限控制，如果获取当前GSM网络相关信息必需在androidmanifest.xml中声明android.permission.ACCESS_NETWORK_STATE这句。 ACCESS_SURFACE_FLINGER是使用SurfaceFlinger底层API的令牌，必需声明android.permission.ACCESS_SURFACE_FLINGER ACCESS_WIFI_STATE权限可以获取使用Wi-Fi等WLAN无线网络，加入android.permission.ACCESS_WIFI_STATE这句 ADD_SYSTEM_SERVICE是系统服务数据库的管理权限，比如添加一个系统服务必需声明android.permission.ADD_SYSTEM_SERVICE BATTERY_STATS是获取Android平台上电池设备的权限令牌，必需声明android.permission.BATTERY_STATS才可以获得电池信息 BLUETOOTH蓝牙信息类，获取相关的蓝牙信息必声明android.permission.BLUETOOTH BLUETOOTH_ADMIN是蓝牙管理权限包含了身份安全认证，必需添加android.permission.BLUETOOTH_ADMIN类 BRICK    “android.permission.BRICK” BROADCAST_PACKAGE_REMOVED是广播包移除类权限，可以移除指定的系统消息，必需声明android.permission.BROADCAST_PACKAGE_REMOVED这句 BROADCAST_STICKY    “android.permission.BROADCAST_STICKY” CALL_PHONE是允许Android手机拨打电话时使用的权限    “android.permission.CALL_PHONE” CALL_PRIVILEGED    “android.permission.CALL_PRIVILEGED” CAMERA是摄像头权限控制，可以管理照相功能的启用    “android.permission.CAMERA” CHANGE_COMPONENT_ENABLED_STATE    “android.permission.CHANGE_COMPONENT_ENABLED_STATE” CHANGE_CONFIGURATION是控制Android系统设置等敏感信息的权限，修改时必需有android.permission.CHANGE_CONFIGURATION声明。 CHANGE_NETWORK_STATE    “android.permission.CHANGE_NETWORK_STATE” CHANGE_WIFI_STATE是改变WLAN状态的开关，如果打开或关闭Wi-Fi必需加入android.permission.CHANGE_WIFI_STATE的声明。 CLEAR_APP_CACHE清除程序缓存也是需要权限的，不要忘了包含android.permission.CLEAR_APP_CACHE这句 CLEAR_APP_USER_DATA    “android.permission.CLEAR_APP_USER_DATA” DELETE_CACHE_FILES    “android.permission.DELETE_CACHE_FILES” DELETE_PACKAGES    “android.permission.DELETE_PACKAGES” DEVICE_POWER    “android.permission.DEVICE_POWER” DISABLE_KEYGUARD    “android.permission.DISABLE_KEYGUARD” DUMP    “android.permission.DUMP” EXPAND_STATUS_BAR    “android.permission.EXPAND_STATUS_BAR” FACTORY_TEST    [...]]]></description>
			<content:encoded><![CDATA[<p>Android权限列表permission说明</p>
<p>Android权限分的很细，但命名比较人性化，Android permission比Symbian Capabilities有了不少改进，下面就来看看权限许可都有哪些定义吧，发现还是比较繁多的，如果发现你的程序某个地方调试错误很可能是 Android permission的访问控制在作怪，这也是为了安全防止手机成为病毒的场所。Android开发网获取到的消息来看不用购买高昂的数字签名证书，权限 许可权由用户决定而不是手机制造商和平台提供商，这一点不得不说明为Android开发人员着想，下面的信息都是需要添加在 androidmanifest.xml文件中。</p>
<p>ACCESS_COARSE_LOCATION是有关错略的位置信息获取，比如说MyLocation API调用获取的Cellid等定位信息必需添加android.permission.ACCESS_COARSE_LOCATION这个声明<br />
ACCESS_FINE_LOCATION、ACCESS_LOCATION_EXTRA_COMMANDS、 ACCESS_MOCK_LOCATION是有关GPS定位获取的信息使用GPS LocationProvider类的相关定位信息必需声明android.permission.ACCESS_FINE_LOCATION、 android.permission.ACCESS_LOCATION_EXTRA_COMMANDS和 android.permission.ACCESS_MOCK_LOCATION</p>
<p>ACCESS_NETWORK_STATE是获取网络状态的权限控制，如果获取当前GSM网络相关信息必需在androidmanifest.xml中声明android.permission.ACCESS_NETWORK_STATE这句。</p>
<p>ACCESS_SURFACE_FLINGER是使用SurfaceFlinger底层API的令牌，必需声明android.permission.ACCESS_SURFACE_FLINGER<br />
ACCESS_WIFI_STATE权限可以获取使用Wi-Fi等WLAN无线网络，加入android.permission.ACCESS_WIFI_STATE这句<br />
ADD_SYSTEM_SERVICE是系统服务数据库的管理权限，比如添加一个系统服务必需声明android.permission.ADD_SYSTEM_SERVICE<br />
BATTERY_STATS是获取Android平台上电池设备的权限令牌，必需声明android.permission.BATTERY_STATS才可以获得电池信息<br />
BLUETOOTH蓝牙信息类，获取相关的蓝牙信息必声明android.permission.BLUETOOTH<br />
BLUETOOTH_ADMIN是蓝牙管理权限包含了身份安全认证，必需添加android.permission.BLUETOOTH_ADMIN类</p>
<p>BRICK    “android.permission.BRICK”</p>
<p>BROADCAST_PACKAGE_REMOVED是广播包移除类权限，可以移除指定的系统消息，必需声明android.permission.BROADCAST_PACKAGE_REMOVED这句<br />
BROADCAST_STICKY    “android.permission.BROADCAST_STICKY”<br />
CALL_PHONE是允许Android手机拨打电话时使用的权限    “android.permission.CALL_PHONE”<br />
CALL_PRIVILEGED    “android.permission.CALL_PRIVILEGED”<br />
CAMERA是摄像头权限控制，可以管理照相功能的启用    “android.permission.CAMERA”<br />
CHANGE_COMPONENT_ENABLED_STATE    “android.permission.CHANGE_COMPONENT_ENABLED_STATE”<br />
CHANGE_CONFIGURATION是控制Android系统设置等敏感信息的权限，修改时必需有android.permission.CHANGE_CONFIGURATION声明。<br />
CHANGE_NETWORK_STATE    “android.permission.CHANGE_NETWORK_STATE”<br />
CHANGE_WIFI_STATE是改变WLAN状态的开关，如果打开或关闭Wi-Fi必需加入android.permission.CHANGE_WIFI_STATE的声明。<br />
CLEAR_APP_CACHE清除程序缓存也是需要权限的，不要忘了包含android.permission.CLEAR_APP_CACHE这句<br />
CLEAR_APP_USER_DATA    “android.permission.CLEAR_APP_USER_DATA”<br />
DELETE_CACHE_FILES    “android.permission.DELETE_CACHE_FILES”<br />
DELETE_PACKAGES    “android.permission.DELETE_PACKAGES”<br />
DEVICE_POWER    “android.permission.DEVICE_POWER”<br />
DISABLE_KEYGUARD    “android.permission.DISABLE_KEYGUARD”<br />
DUMP    “android.permission.DUMP”<br />
EXPAND_STATUS_BAR    “android.permission.EXPAND_STATUS_BAR”<br />
FACTORY_TEST    “android.permission.FACTORY_TEST”<br />
FLASHLIGHT    “android.permission.FLASHLIGHT”<br />
FORCE_BACK    “android.permission.FORCE_BACK”<br />
FOTA_UPDATE    “android.permission.FOTA_UPDATE”<br />
GET_ACCOUNTS    “android.permission.GET_ACCOUNTS”<br />
GET_PACKAGE_SIZE    “android.permission.GET_PACKAGE_SIZE”<br />
GET_TASKS    “android.permission.GET_TASKS”<br />
HARDWARE_TEST    “android.permission.HARDWARE_TEST”<br />
INJECT_EVENTS    “android.permission.INJECT_EVENTS”<br />
INSTALL_PACKAGES    “android.permission.INSTALL_PACKAGES”<br />
INTERNAL_SYSTEM_WINDOW    “android.permission.INTERNAL_SYSTEM_WINDOW”<br />
INTERNET    “android.permission.INTERNET”<br />
MANAGE_APP_TOKENS    “android.permission.MANAGE_APP_TOKENS”<br />
MASTER_CLEAR    “android.permission.MASTER_CLEAR”<br />
MODIFY_AUDIO_SETTINGS    “android.permission.MODIFY_AUDIO_SETTINGS”<br />
MODIFY_PHONE_STATE    “android.permission.MODIFY_PHONE_STATE”<br />
MOUNT_UNMOUNT_FILESYSTEMS    “android.permission.MOUNT_UNMOUNT_FILESYSTEMS”<br />
PERSISTENT_ACTIVITY    “android.permission.PERSISTENT_ACTIVITY”<br />
PROCESS_OUTGOING_CALLS    “android.permission.PROCESS_OUTGOING_CALLS”<br />
READ_CALENDAR    “android.permission.READ_CALENDAR”<br />
READ_CONTACTS    “android.permission.READ_CONTACTS”<br />
READ_FRAME_BUFFER    “android.permission.READ_FRAME_BUFFER”<br />
READ_INPUT_STATE    “android.permission.READ_INPUT_STATE”<br />
READ_LOGS    “android.permission.READ_LOGS”<br />
READ_OWNER_DATA    “android.permission.READ_OWNER_DATA”<br />
READ_PHONE_STATE    “android.permission.READ_PHONE_STATE”<br />
READ_SMS    “android.permission.READ_SMS”<br />
READ_SYNC_SETTINGS    “android.permission.READ_SYNC_SETTINGS”<br />
READ_SYNC_STATS    “android.permission.READ_SYNC_STATS”<br />
RECEIVE_BOOT_COMPLETED一般用于自启动程序的声明，当Android系统启动时会发送这个广播，所以自启动程序必需声明android.permission.RECEIVE_BOOT_COMPLETED才可以正常运行</p>
<p>RECEIVE_MMS    “android.permission.RECEIVE_MMS”<br />
RECEIVE_SMS    “android.permission.RECEIVE_SMS”<br />
RECEIVE_WAP_PUSH    “android.permission.RECEIVE_WAP_PUSH”<br />
RECORD_AUDIO    “android.permission.RECORD_AUDIO”<br />
REORDER_TASKS    “android.permission.REORDER_TASKS”<br />
RESTART_PACKAGES    “android.permission.RESTART_PACKAGES”<br />
SEND_SMS    “android.permission.SEND_SMS”<br />
SET_ACTIVITY_WATCHER    “android.permission.SET_ACTIVITY_WATCHER”<br />
SET_ALWAYS_FINISH    “android.permission.SET_ALWAYS_FINISH”<br />
SET_ANIMATION_SCALE    “android.permission.SET_ANIMATION_SCALE”<br />
SET_DEBUG_APP    “android.permission.SET_DEBUG_APP”<br />
SET_ORIENTATION    “android.permission.SET_ORIENTATION”<br />
SET_PREFERRED_APPLICATIONS    “android.permission.SET_PREFERRED_APPLICATIONS”<br />
SET_PROCESS_FOREGROUND    “android.permission.SET_PROCESS_FOREGROUND”<br />
SET_PROCESS_LIMIT    “android.permission.SET_PROCESS_LIMIT”<br />
SET_TIME_ZONE    “android.permission.SET_TIME_ZONE”<br />
SET_WALLPAPER    “android.permission.SET_WALLPAPER”<br />
SET_WALLPAPER_HINTS    “android.permission.SET_WALLPAPER_HINTS”<br />
SIGNAL_PERSISTENT_PROCESSES    “android.permission.SIGNAL_PERSISTENT_PROCESSES”<br />
STATUS_BAR    “android.permission.STATUS_BAR”<br />
SYSTEM_ALERT_WINDOW    “android.permission.SYSTEM_ALERT_WINDOW”<br />
VIBRATE    “android.permission.VIBRATE”<br />
WAKE_LOCK    “android.permission.WAKE_LOCK”<br />
WRITE_CALENDAR    “android.permission.WRITE_CALENDAR”<br />
WRITE_CONTACTS    “android.permission.WRITE_CONTACTS”<br />
WRITE_OWNER_DATA    “android.permission.WRITE_OWNER_DATA”<br />
WRITE_SETTINGS    “android.permission.WRITE_SETTINGS”<br />
WRITE_SMS    “android.permission.WRITE_SMS”<br />
WRITE_SYNC_SETTINGS    “android.permission.WRITE_SYNC_SETTINGS”</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chenxinxing.com/2012/02/21/307/index.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nginx 1.1.15 开发版发布</title>
		<link>http://www.chenxinxing.com/2012/02/19/305/index.html</link>
		<comments>http://www.chenxinxing.com/2012/02/19/305/index.html#comments</comments>
		<pubDate>Sun, 19 Feb 2012 14:07:55 +0000</pubDate>
		<dc:creator>chenxx</dc:creator>
				<category><![CDATA[技术新闻]]></category>

		<guid isPermaLink="false">http://www.chenxinxing.com/?p=305</guid>
		<description><![CDATA[Nginx (“engine x”) 是一个高性能的HTTP和反向代理服务器，也是一个IMAP/POP3/SMTP代理服务器，特点是占有内存少、并发能力强，其源代码以类BSD许可证的形式发布。 该版本进行了一些功能改进和Bug修复，包括： 新特性：新增“disable_symlinks”指令。 新特性：新增“proxy_cookie_domain”和“proxy_cookie_path”指令。 修复：Nginx可能会记录错误的消息“上游过早关闭连接”，而不是正确的“上游发送过大的头信息”。 修复：如果使用&#8211;with-openssl选项，则会导致Nginx不能被ngx_http_perl_module创建。 修复：内部重定向到locations的操作未被限制。 修复：多次调用$r-&#62;flush()，可能导致ngx_http_gzip_filter_module出现错误。 修复：如果使用“proxy_store”指令，可能导致临时文件不会被删除。 修复：某些情况下，非缓存变量（如$args）返回旧的空缓存值。 修复：如果同时发生过多的SSI子请求，则会导致工作进程出现段错误。 详细信息：http://nginx.org/en/CHANGES 下载地址：http://nginx.org/en/download.html &#160;]]></description>
			<content:encoded><![CDATA[<div style="text-align: center;"><img src="http://dl.iteye.com/upload/attachment/0063/2786/0a6f8cc0-aa84-3c52-bbec-6aa25c15a4fb.gif" alt="" /></div>
<p>Nginx (“engine x”) 是一个高性能的HTTP和反向代理服务器，也是一个IMAP/POP3/SMTP代理服务器，特点是占有内存少、并发能力强，其源代码以类BSD许可证的形式发布。</p>
<p><strong>该版本进行了一些功能改进和Bug修复，</strong>包括：</p>
<ul>
<li>新特性：新增“disable_symlinks”指令。</li>
<li>新特性：新增“proxy_cookie_domain”和“proxy_cookie_path”指令。</li>
<li>修复：Nginx可能会记录错误的消息“上游过早关闭连接”，而不是正确的“上游发送过大的头信息”。</li>
<li>修复：如果使用&#8211;with-openssl选项，则会导致Nginx不能被ngx_http_perl_module创建。</li>
<li>修复：内部重定向到locations的操作未被限制。</li>
<li>修复：多次调用$r-&gt;flush()，可能导致ngx_http_gzip_filter_module出现错误。</li>
<li>修复：如果使用“proxy_store”指令，可能导致临时文件不会被删除。</li>
<li>修复：某些情况下，非缓存变量（如$args）返回旧的空缓存值。</li>
<li>修复：如果同时发生过多的SSI子请求，则会导致工作进程出现段错误。</li>
</ul>
<p>详细信息：<a href="http://nginx.org/en/CHANGES" target="_blank">http://nginx.org/en/CHANGES</a></p>
<p>下载地址：<a href="http://nginx.org/en/download.html" target="_blank">http://nginx.org/en/download.html</a></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chenxinxing.com/2012/02/19/305/index.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>2011年最给力的十大名言</title>
		<link>http://www.chenxinxing.com/2012/02/15/302/index.html</link>
		<comments>http://www.chenxinxing.com/2012/02/15/302/index.html#comments</comments>
		<pubDate>Wed, 15 Feb 2012 09:50:06 +0000</pubDate>
		<dc:creator>chenxx</dc:creator>
				<category><![CDATA[生活]]></category>

		<guid isPermaLink="false">http://www.chenxinxing.com/?p=302</guid>
		<description><![CDATA[1、笑只是个表情，与快乐无关。 2、思想就像内裤，要有，但不能逢人就证明你有。 3、纯，属虚构；乱，是佳人。 4、我可以选择放弃，但决不放弃选择。 5、以前，养儿防老；如今，养老要防儿。 6、君子报仇十年不晚。小人报仇从早到晚。 7、如今人们经常需要马桶精神，按一下，什么都干净了。 8、眉毛上的汗水，眉毛下的泪水，你总得选一样。 9、人家有背景而我只有背影。 10、财富改变不了个性，却可以让人露出本性 &#160;]]></description>
			<content:encoded><![CDATA[<p>1、笑只是个表情，与快乐无关。</p>
<p>2、思想就像内裤，要有，但不能逢人就证明你有。</p>
<p>3、纯，属虚构；乱，是佳人。</p>
<p>4、我可以选择放弃，但决不放弃选择。</p>
<p>5、以前，养儿防老；如今，养老要防儿。</p>
<p>6、君子报仇十年不晚。小人报仇从早到晚。</p>
<p>7、如今人们经常需要马桶精神，按一下，什么都干净了。</p>
<p>8、眉毛上的汗水，眉毛下的泪水，你总得选一样。</p>
<p>9、人家有背景而我只有背影。</p>
<p>10、财富改变不了个性，却可以让人露出本性</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chenxinxing.com/2012/02/15/302/index.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>微软发布2月安全公告_Windows 安全</title>
		<link>http://www.chenxinxing.com/2012/02/15/300/index.html</link>
		<comments>http://www.chenxinxing.com/2012/02/15/300/index.html#comments</comments>
		<pubDate>Wed, 15 Feb 2012 01:40:37 +0000</pubDate>
		<dc:creator>chenxx</dc:creator>
				<category><![CDATA[技术新闻]]></category>

		<guid isPermaLink="false">http://www.chenxinxing.com/?p=300</guid>
		<description><![CDATA[微软刚刚发布了2月份的安全补丁。这一天美国时间恰逢情人节，看来这并未影响微软人员的工作热情，照例在每月的第二个星期二发布了安全补丁。本次微软共更新了9个补丁，修复了21个程序漏洞，其中包括网页插件Silverlight可能允许远程执行代码的严重漏洞等。 查看:Microsoft Security Bulletin Summary for February 2012微软Silverlight通常被认为是与Adobe Flash相竞争的一款产品，在众多IE浏览器用户中安装，用于浏览网页动画和前端交互应用。本次安全公告显示，如果Windows或Silverlight用户查看特制的网页，就有可能允许远程执行代码，带来的后果可能导致被恶意攻击乃至控制，资料泄露等。目前受影响的版本主要是Silverlight 4.0，微软最新推出的版本是5.0，但4.0版用户使用仍然较多。此漏洞危害为最高等级的“严重”级别，覆盖几乎所有Windows版本。微软本次还专门为Windows XP修复了一个安全漏洞。如果用户在特定情形下打开一个.avi多媒体文件，成功利用此漏洞的攻击者可以作为登录的用户运行任意代码。攻击者可安装程序，查看、更改或删除数据，甚至完全控制受影响的系统。虽然微软未将此漏洞定义为最高安全等级，但考虑到国内仍有大批的XP用户，以及.avi是较为常见的视频文件，因此该漏洞在国内可能会造成较严重的影响。此外，微软本次还解决了其他包括Windows、Windows Server、Office、IE等系统安全隐患，在本月9个安全补丁中，有4个为最高安全等级，另外5个为重要等级，危害较大。]]></description>
			<content:encoded><![CDATA[<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; font-family: Verdana; font-size: 14px; line-height: 20px; text-align: left; background-color: #e5ecf4; padding: 0px;"><span style="font-weight: bold; padding: 0px; margin: 0px;">微软刚刚发布了2月份的安全补丁。这一天美国时间恰逢情人节，看来这并未影响微软人员的工作热情，照例在每月的第二个星期二发布了安全补丁。</span>本次微软共更新了9个补丁，修复了21个程序漏洞，其中包括网页插件Silverlight可能允许远程执行代码的严重漏洞等。</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; font-family: Verdana; font-size: 14px; line-height: 20px; text-align: left; background-color: #e5ecf4; padding: 0px;"><img style="padding: 0px; margin: 0px;" src="http://www.cnbeta.com/articles/pic/view.gif" alt="" /><strong style="padding: 0px; margin: 0px;">查看:</strong><a style="color: #003366; text-decoration: none; padding: 0px; margin: 0px;" href="http://technet.microsoft.com/en-us/security/bulletin/ms12-feb" target="_blank">Microsoft Security Bulletin Summary for February 2012</a><br style="padding: 0px; margin: 0px;" /><br style="padding: 0px; margin: 0px;" />微软Silverlight通常被认为是与Adobe Flash相竞争的一款产品，在众多IE浏览器用户中安装，用于浏览网页动画和前端交互应用。本次安全公告显示，如果Windows或Silverlight用户查看特制的网页，就有可能允许远程执行代码，带来的后果可能导致被恶意攻击乃至控制，资料泄露等。<br style="padding: 0px; margin: 0px;" /><br style="padding: 0px; margin: 0px;" />目前受影响的版本主要是Silverlight 4.0，微软最新推出的版本是5.0，但4.0版用户使用仍然较多。此漏洞危害为最高等级的“严重”级别，覆盖几乎所有Windows版本。<br style="padding: 0px; margin: 0px;" /><br style="padding: 0px; margin: 0px;" />微软本次还专门为Windows XP修复了一个安全漏洞。如果用户在特定情形下打开一个.avi多媒体文件，成功利用此漏洞的攻击者可以作为登录的用户运行任意代码。攻击者可安装程序，查看、更改或删除数据，甚至完全控制受影响的系统。<br style="padding: 0px; margin: 0px;" /><br style="padding: 0px; margin: 0px;" />虽然微软未将此漏洞定义为最高安全等级，但考虑到国内仍有大批的XP用户，以及.avi是较为常见的视频文件，因此该漏洞在国内可能会造成较严重的影响。<br style="padding: 0px; margin: 0px;" /><br style="padding: 0px; margin: 0px;" />此外，微软本次还解决了其他包括Windows、Windows Server、Office、IE等系统安全隐患，在本月9个安全补丁中，有4个为最高安全等级，另外5个为重要等级，危害较大。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chenxinxing.com/2012/02/15/300/index.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Android] 为Android安装BusyBox —— 完整的bash shell</title>
		<link>http://www.chenxinxing.com/2011/11/24/292/index.html</link>
		<comments>http://www.chenxinxing.com/2011/11/24/292/index.html#comments</comments>
		<pubDate>Thu, 24 Nov 2011 03:46:25 +0000</pubDate>
		<dc:creator>chenxx</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[技术新闻]]></category>

		<guid isPermaLink="false">http://www.chenxinxing.com/?p=292</guid>
		<description><![CDATA[大家是否有过这样的经历，在命令行里输入adb shell，然后使用命令操作你的手机或模拟器，但是那些命令都是常见Linux命令的阉割缩水版，用起来很不爽。是否想过在Android上使用较完整的shell呢？用BusyBox吧。不论使用adb连接设备使用命令行还是在手机上直接用terminal emulator都可以。 一、什么是BusyBox ？ BusyBox 是标准 Linux 工具的一个单个可执行实现。BusyBox 包含了一些简单的工具，例如 cat 和 echo，还包含了一些更大、更复杂的工具，例如 grep、find、mount 以及 telnet。有些人将 BusyBox 称为 Linux 工具里的瑞士军刀.简单的说BusyBox就好像是个大工具箱，它集成压缩了 Linux 的许多工具和命令。（摘自百度百科） 二、在Android上安装BusyBox 准备： 0. 先要把手机给Root了，具体教程这里就不提供了，网上有很多。 1. 下载BusyBox的binary，打开这个地址 http://www.busybox.net/downloads/binaries ，选择最新版本，然后下载对应你的设备架构的版本，这里我下载了busybox-armv6l，下面将以这个文件名为示例。 2. 需要有一个命令行的环境，在电脑上使用adb或在手机上使用terminal emulator。 3. 连接手机和电脑，手机的USB Mode设置成None（仅充电），并且开启USB调试模式。 安装： 1. 将busybox-armv6l重命名为busybox 2. 将busybox传入手机的SD卡，可以使用下面的命令或自己想其他办法。 打开terminal（Linux，Mac）或cmd（Windows） adb push ~/Desktop/busybox /mnt/sdcard 其中的~/Desktop请根据自己的情况替换成正确的路径 3. 输入以下命令，为了在/system目录写入文件 adb shell su mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system [...]]]></description>
			<content:encoded><![CDATA[<p>大家是否有过这样的经历，在命令行里输入adb shell，然后使用命令操作你的手机或模拟器，但是那些命令都是常见Linux命令的阉割缩水版，用起来很不爽。是否想过在Android上使用较完整的shell呢？用BusyBox吧。不论使用adb连接设备使用命令行还是在手机上直接用terminal emulator都可以。</p>
<p>一、什么是BusyBox ？</p>
<p>BusyBox 是标准 Linux 工具的一个单个可执行实现。BusyBox 包含了一些简单的工具，例如 cat 和 echo，还包含了一些更大、更复杂的工具，例如 grep、find、mount 以及 telnet。有些人将 BusyBox 称为 Linux 工具里的瑞士军刀.简单的说BusyBox就好像是个大工具箱，它集成压缩了 Linux 的许多工具和命令。（摘自百度百科）</p>
<p>二、在Android上安装BusyBox</p>
<p>准备：</p>
<p>0. 先要把手机给Root了，具体教程这里就不提供了，网上有很多。</p>
<p>1. 下载BusyBox的binary，打开这个地址 <a href="http://www.busybox.net/downloads/binaries">http://www.busybox.net/downloads/binaries</a> ，选择最新版本，然后下载对应你的设备架构的版本，这里我下载了busybox-armv6l，下面将以这个文件名为示例。</p>
<p><img src="http://pic002.cnblogs.com/images/2011/231332/2011031215274263.png" alt="" /></p>
<p>2. 需要有一个命令行的环境，在电脑上使用adb或在手机上使用terminal emulator。</p>
<p>3. 连接手机和电脑，手机的USB Mode设置成None（仅充电），并且开启USB调试模式。</p>
<p>安装：</p>
<p>1. 将busybox-armv6l重命名为busybox</p>
<p>2. 将busybox传入手机的SD卡，可以使用下面的命令或自己想其他办法。</p>
<p>打开terminal（Linux，Mac）或cmd（Windows）</p>
<div>
<div id="highlighter_238268">
<div>
<div>
<table>
<tbody>
<tr>
<td><code>adb </code><code>push</code> <code>~/Desktop/busybox /mnt/sdcard</code></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<p>其中的~/Desktop请根据自己的情况替换成正确的路径</p>
<p>3. 输入以下命令，为了在/system目录写入文件</p>
<div>
<div id="highlighter_795535">
<div>
<div>
<table>
<tbody>
<tr>
<td><code>adb shell</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>su</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /</code><code>system</code></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<p>使用 ls 检查一下 /system 里是否有 xbin 目录，没有的话输入 mkdir xbin 创建，因为本示例是要把busybox安装到 /system/xbin 。</p>
<p>4. 复制 busybox 文件到 /system/xbin，并为其分配“可执行”的权限</p>
<div>
<div id="highlighter_170643">
<div>
<div>
<table>
<tbody>
<tr>
<td><code>cp /mnt/sdcard/busybox /</code><code>system</code><code>/xbin</code></td>
</tr>
</tbody>
</table>
</div>
<div>
<table>
<tbody>
<tr>
<td><code>chmod</code> <code>755 busybox</code></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<p>5. 这时就可以使用 busybox 的命令了，例如以前没有清屏的clear命令，现在只需输入 busybox clear 就可以实现清屏功能，使用完整版的 ls 只需输入 busybox ls 。</p>
<p>但是每次前面都加上个busybox太麻烦了，所以我们还要继续完成安装。</p>
<p>在 /system/xbin 下输入</p>
<div>
<div id="highlighter_960460">
<div>
<div>
<table>
<tbody>
<tr>
<td><code>busybox --install .</code></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<p>如果想安装到别的目录，则把点替换成别的路径。</p>
<p>至此就安装完成了，比较一下原来的 ls 命令和 busybox 里的 ls 命令。</p>
<p><img src="http://pic002.cnblogs.com/images/2011/231332/2011031215564763.png" alt="" /></p>
<p><strong>常见错误：</strong></p>
<p>1. 如果安装时出现这样的错误，</p>
<p>busybox: /bin/zcat: No such file or directory</p>
<p>busybox: /sbin/zcip: Invalid cross-device link</p>
<p>说明没有输入安装路径，正确的示例 busybox &#8211;install /system/xbin</p>
<p>2. 如果出现这样的错误，</p>
<p>cp: /system/xbin/busybox: Read-only file system</p>
<p>说明没有正确输入上面第三步的mount命令。</p>
<p><strong>小技巧：</strong></p>
<p>1. busybox 里有 ash 和 hush 还有 sh 这几种 shell，在命令行输入 ash 或 hush，可以像在 bash 里那样，通过按上下键选择刚才输入的命令。</p>
<p>2. android系统本身就有ls命令，busybox里也有ls，输入ls时调用的是android的ls，那么想用busybox的ls就要每次都在前面加个busybox吗？不用，使用alias命令可以搞定。</p>
<div>
<div id="highlighter_889103">
<div>
<div>
<table>
<tbody>
<tr>
<td><code>alias ls=</code><code>'busybox ls'</code></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<p>同样的，cp、mv等二者都有的命令都可以这样搞定。也可以通过修改 /init.rc 来解决。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chenxinxing.com/2011/11/24/292/index.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>【android】Gaining Root Access</title>
		<link>http://www.chenxinxing.com/2011/11/24/290/index.html</link>
		<comments>http://www.chenxinxing.com/2011/11/24/290/index.html#comments</comments>
		<pubDate>Thu, 24 Nov 2011 03:45:07 +0000</pubDate>
		<dc:creator>chenxx</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[技术新闻]]></category>

		<guid isPermaLink="false">http://www.chenxinxing.com/?p=290</guid>
		<description><![CDATA[You will need ADB on the computer to root the Motorola Droid X. Follow the Android SDK guide, to get the ADB shell on the computer. Download rageinthecage-arm5, the Motorola Drivers &#38; the Superuser package: rageagainstthecage-arm5: Download md5: bfa28d457b54508326ab55d11399c586 Motorola 5.2.0 device Drivers (Windows Only): Download Superuser package: Download md5: 43d9a40b63e916635d5ad7ca32433fab Windows Only: Install the Motorola device drivers. Unzip rageinthecage-arm5 &#38; the Superuser package to the same folder [...]]]></description>
			<content:encoded><![CDATA[<h3></h3>
<ol>
<li>You will need <a title="ADB" href="http://wiki.cyanogenmod.com/wiki/ADB">ADB</a> on the computer to root the Motorola Droid X. Follow the <a title="Howto: Install the Android SDK" href="http://wiki.cyanogenmod.com/wiki/Howto:_Install_the_Android_SDK">Android SDK</a> guide, to get the <a title="ADB" href="http://wiki.cyanogenmod.com/wiki/ADB">ADB</a> shell on the computer.</li>
<li>Download rageinthecage-arm5, the Motorola Drivers &amp; the Superuser package:
<ul>
<li>rageagainstthecage-arm5: <a href="http://cmw.22aaf3.com/common/rageagainstthecage-arm5.zip" rel="nofollow">Download</a>
<dl>
<dd>md5: <code>bfa28d457b54508326ab55d11399c586</code></dd>
</dl>
</li>
<li>Motorola 5.2.0 device Drivers (<strong>Windows Only</strong>): <a href="http://www.motorola.com/staticfiles/Support/Experiences/Global_Drivers/MotoHelper_2.0.51_Driver_5.2.0.exe" rel="nofollow">Download</a></li>
<li>Superuser package: <a href="http://cmw.22aaf3.com/common/su-2.3.6.2-efgh.zip" rel="nofollow">Download</a>
<dl>
<dd>md5: <code>43d9a40b63e916635d5ad7ca32433fab</code></dd>
</dl>
</li>
</ul>
</li>
<li><strong>Windows Only:</strong> Install the Motorola device drivers.</li>
<li>Unzip rageinthecage-arm5 &amp; the Superuser package to the same folder as adb (the /platform-tools folder within the AndroidSDK folder).</li>
<li>Connect the Motorola Droid X to the computer via USB.</li>
<li>On the computer, open terminal and run the following commands:
<dl>
<dd><code>adb push rageagainstthecage-arm5.bin /data/local/tmp/</code></dd>
<dd><code>adb shell</code></dd>
<dd><code>chmod 755 /data/local/tmp/rageagainstthecage-arm5.bin</code></dd>
<dd><code>/data/local/tmp/rageagainstthecage-arm5.bin</code></dd>
</dl>
</li>
<li>Once the exploit finishes, in terminal, run the following commands:
<dl>
<dd><code>exit</code></dd>
<dd><code>adb kill-server</code></dd>
<dd><code>adb start-server</code></dd>
<dd><code>adb shell</code>
<dl>
<dd><strong>NOTE:</strong> You should see a “#”. If you see a “$”, then the exploit didn&#8217;t work, please repeat steps <strong>4</strong> &amp; <strong>5</strong>.</dd>
</dl>
</dd>
<dd><code>mount -o remount,rw -t /dev/block/mtdblock1 /system</code></dd>
<dd><code>exit</code></dd>
<dd><code>adb push su /system/xbin/</code></dd>
<dd><code>adb shell chmod 4755 /system/xbin/su</code></dd>
<dd><code>adb push Superuser.apk /system/app/</code></dd>
</dl>
</li>
<li>The Motorola Droid X is now rooted, please continue to the next section.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.chenxinxing.com/2011/11/24/290/index.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 1.238 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2012-05-19 23:44:59 -->

