<?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>记录与PHP的PK经历 &#187; mysql</title>
	<atom:link href="http://www.pkphp.com/tag/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pkphp.com</link>
	<description>PK with php!</description>
	<lastBuildDate>Fri, 27 May 2011 02:07:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>终于知道wordpress越来越慢的原因（一）</title>
		<link>http://www.pkphp.com/2008/10/05/why-wordpress-so-slow/</link>
		<comments>http://www.pkphp.com/2008/10/05/why-wordpress-so-slow/#comments</comments>
		<pubDate>Sun, 05 Oct 2008 12:49:46 +0000</pubDate>
		<dc:creator>askie</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[mysqldumpslow]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[慢速]]></category>

		<guid isPermaLink="false">http://www.pkphp.com/?p=731</guid>
		<description><![CDATA[最近服务器速度越来越慢，有时候服务器负载经常到达十几甚至看到过二十。博客打开的速度也慢了起来，今天花...<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F10%2F04%2Fmysql-slow-log%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F10%2F05%2Fwhy-wordpress-so-slow%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">mysql慢速(slow log)脚本分析</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F08%2Fwordpress-auto-blogroll-design%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F10%2F05%2Fwhy-wordpress-so-slow%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">wordpress自助链接auto-blogroll插件设计细节！</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F26%2Fwordpress-seo-v11%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F10%2F05%2Fwhy-wordpress-so-slow%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">wordpress中文seo插件升级到V1.1</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F11%2Fwordpress-plugin-auto-blogroll-v14-released%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F10%2F05%2Fwhy-wordpress-so-slow%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">wordpress自助插件auto blogroll V1.4 发布!</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>最近服务器速度越来越慢，有时候服务器负载经常到达十几甚至看到过二十。博客打开的速度也慢了起来，今天花时间研究看看到底什么网站、什么数据库查询引起的问题。</p>
<p>首先在服务器端对mysql设置了慢速sql日志输出，详细的设置方法见：<a href="http://www.pkphp.com/2008/10/04/mysql-slow-log/" target="_blank">mysql慢速(slow log)脚本分析</a></p>
<p>使用mysql自带的慢速日志查询工具对日志进行分析，按照最多查询记录排序，发现如下sql是查询出记录最多的，这条语句居然查出来9946条记录，俄地个乖乖，不慢才怪：</p>
<div style="border: 1px solid gray; margin: 20px 0px 10px; padding: 4px; overflow: auto; font-size: 8pt; width: 97.5%; cursor: text; max-height: 200px; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;">
<div style="border-style: none; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;">
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;"><span style="color: #0000ff;">Count</span>: 18  <span style="color: #0000ff;">Time</span>=4294967294.94s (-1s)  Lock=0.00s (0s)  <span style="color: #0000ff;">Rows</span>=552.6 (9946), 2users@localhost</pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;"><span style="color: #0000ff;">SELECT</span> post_title, DAYOFMONTH(post_date) <span style="color: #0000ff;">as</span> dom <span style="color: #0000ff;">FROM</span> wp_posts <span style="color: #0000ff;">WHERE</span> <span style="color: #0000ff;">YEAR</span>(post_date) = <span style="color: #006080;">'S'</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;"><span style="color: #0000ff;">AND</span> <span style="color: #0000ff;">MONTH</span>(post_date) = <span style="color: #006080;">'S'</span> <span style="color: #0000ff;">AND</span> post_date &lt; <span style="color: #006080;">'S'</span> <span style="color: #0000ff;">AND</span> post_type = <span style="color: #006080;">'S'</span> <span style="color: #0000ff;">AND</span> post_status = <span style="color: #006080;">'S'</span></pre>
</div>
</div>
<p>这个是mysqldumpslow出来的统计排列第一的结果。然后进入日志查找具体的sql语句发现：</p>
<div style="border: 1px solid gray; margin: 20px 0px 10px; padding: 4px; overflow: auto; font-size: 8pt; width: 97.5%; cursor: text; max-height: 200px; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;">
<div style="border-style: none; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;">
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;"><span style="color: #0000ff;">use</span> abc;</pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;"><span style="color: #0000ff;">SELECT</span> post_title, DAYOFMONTH(post_date) <span style="color: #0000ff;">as</span> dom <span style="color: #0000ff;">FROM</span> wp_posts</pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;"><span style="color: #0000ff;">WHERE</span> <span style="color: #0000ff;">YEAR</span>(post_date) = <span style="color: #006080;">'2008'</span> <span style="color: #0000ff;">AND</span> <span style="color: #0000ff;">MONTH</span>(post_date) = <span style="color: #006080;">'10'</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;"><span style="color: #0000ff;">AND</span> post_date &lt; <span style="color: #006080;">'2008-10-05 13:09:33'</span> <span style="color: #0000ff;">AND</span> post_type = <span style="color: #006080;">'post'</span></pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;"><span style="color: #0000ff;">AND</span> post_status = <span style="color: #006080;">'publish'</span>;</pre>
</div>
</div>
<p>这样的类似语句很多，变化的都是时间，看了这个马上就明白这条语句不就是wordpress存档查询么！去看了一下wordpress，侧边栏输出了所有存档（archive）链接，我猜测就是因为存档链接的输出引起的这些sql查询。马上回到后台，关闭了所有的存档输出，再检测一段时间的mysql，发现这样的语句消失了！</p>
<p>终于找到了原因了，服务器负载有所降低，看来以后wordpress不能输出存档链接了！其实还有一个办法就是静态化日志链接也可以解决这个问题，我的做法是直接静态化了首页，即使首页输出了存档链接也不会引起查询。这样做也能降低一部分mysql查询。<br />
<h3 class="bsuite_related">Related items</h3>
<ul class="bsuite_related">
<li><a href='http://www.pkphp.com/2008/10/04/mysql-slow-log/'>mysql慢速(slow log)脚本分析</a></li>
<li><a href='http://www.pkphp.com/2008/08/16/mysql%e4%b8%ad%e8%ae%be%e7%bd%ae%e8%87%aa%e5%a2%9e%e5%ad%97%e6%ae%b5/'>MySQL中设置自增字段</a></li>
<li><a href='http://www.pkphp.com/2008/08/16/mysql-optimization-script/'>mysql优化脚本！</a></li>
<li><a href='http://www.pkphp.com/2008/07/28/mysql%e9%9a%8f%e6%9c%ba%e6%9f%a5%e8%af%a2%e8%be%93%e5%87%ba%e6%95%b0%e6%8d%ae%e8%af%ad%e5%8f%a5/'>mysql随机查询输出数据语句</a></li>
<li><a href='http://www.pkphp.com/2010/12/11/mysql%e4%b8%ad%e7%9a%84%e8%a1%a8%e6%98%be%e7%a4%ba%e2%80%9c%e4%bd%bf%e7%94%a8%e4%b8%ad%e2%80%9d%e8%a7%a3%e5%86%b3%e5%8a%9e%e6%b3%95%ef%bc%81/'>mysql中的表显示“使用中”解决办法！</a></li>
</ul>
<a href="http://www.pkphp.com/2008/10/05/why-wordpress-so-slow/" title="http://www.pkphp.com/" style="font-size: 13px;">http://www.pkphp.com/</a>(2)<a href="http://www.pkphp.com/2008/10/05/why-wordpress-so-slow/" title="WordPress " style="font-size: 13px;">WordPress </a>(1)<a href="http://www.pkphp.com/2008/10/05/why-wordpress-so-slow/" title="wordpress 慢" style="font-size: 13px;">wordpress 慢</a>(63)<a href="http://www.pkphp.com/2008/10/05/why-wordpress-so-slow/" title="Wordpress 负载" style="font-size: 13px;">WordPress 负载</a>(18)<a href="http://www.pkphp.com/2008/10/05/why-wordpress-so-slow/" title="wordpress 发布日志慢" style="font-size: 13px;">wordpress 发布日志慢</a>(1)<a href="http://www.pkphp.com/2008/10/05/why-wordpress-so-slow/" title="ajax tree 越来越慢" style="font-size: 13px;">ajax tree 越来越慢</a>(1)<a href="http://www.pkphp.com/2008/10/05/why-wordpress-so-slow/" title="wordpress php 慢" style="font-size: 13px;">wordpress php 慢</a>(1)<a href="http://www.pkphp.com/2008/10/05/why-wordpress-so-slow/" title="wordpress 越来越慢" style="font-size: 13px;">wordpress 越来越慢</a>(3)<a href="http://www.pkphp.com/2008/10/05/why-wordpress-so-slow/" title="PHP 慢" style="font-size: 13px;">PHP 慢</a>(1)<a href="http://www.pkphp.com/2008/10/05/why-wordpress-so-slow/" title="wordpress慢" style="font-size: 13px;">wordpress慢</a>(4)<a href="http://www.pkphp.com/2008/10/05/why-wordpress-so-slow/" title="wordpress越來越慢" style="font-size: 13px;">wordpress越來越慢</a>(1)<a href="http://www.pkphp.com/2008/10/05/why-wordpress-so-slow/" title="wordpress打开慢" style="font-size: 13px;">wordpress打开慢</a>(4)<a href="http://www.pkphp.com/2008/10/05/why-wordpress-so-slow/" title="wordpress降低sql链接" style="font-size: 13px;">wordpress降低sql链接</a>(1)<a href="http://www.pkphp.com/2008/10/05/why-wordpress-so-slow/" title="wordpress 记录 数据库 慢" style="font-size: 13px;">wordpress 记录 数据库 慢</a>(1)<a href="http://www.pkphp.com/2008/10/05/why-wordpress-so-slow/" title="wordpress 打开 慢" style="font-size: 13px;">wordpress 打开 慢</a>(2)<br /><table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F10%2F04%2Fmysql-slow-log%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F10%2F05%2Fwhy-wordpress-so-slow%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">mysql慢速(slow log)脚本分析</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F08%2Fwordpress-auto-blogroll-design%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F10%2F05%2Fwhy-wordpress-so-slow%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">wordpress自助链接auto-blogroll插件设计细节！</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F26%2Fwordpress-seo-v11%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F10%2F05%2Fwhy-wordpress-so-slow%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">wordpress中文seo插件升级到V1.1</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F11%2Fwordpress-plugin-auto-blogroll-v14-released%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F10%2F05%2Fwhy-wordpress-so-slow%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">wordpress自助插件auto blogroll V1.4 发布!</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件" rel="nofollow">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table><p><div id="relatedlinks_container_div"></div>
<script language=javascript defer>
  var escFun = window.encodeURIComponent ? window.encodeURIComponent : escape;
  var relatedlinks_js = document.createElement("script");
  relatedlinks_js.setAttribute("charset", "utf-8");
  relatedlinks_js.src = "http://relatedlinks.googlelabs.com/client/client.js?url=" +
      escFun(document.URL) + "&referrer=" + escFun(document.referrer) +
      "&relatedlinks_id=10098_5845376649736343543&title=" + escFun(document.title);
  document.getElementsByTagName("head")[0].appendChild(relatedlinks_js);
</script></p> ]]></content:encoded>
			<wfw:commentRss>http://www.pkphp.com/2008/10/05/why-wordpress-so-slow/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>mysql慢速(slow log)脚本分析</title>
		<link>http://www.pkphp.com/2008/10/04/mysql-slow-log/</link>
		<comments>http://www.pkphp.com/2008/10/04/mysql-slow-log/#comments</comments>
		<pubDate>Sat, 04 Oct 2008 12:34:11 +0000</pubDate>
		<dc:creator>askie</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[log]]></category>
		<category><![CDATA[mysqldumpslow]]></category>
		<category><![CDATA[slow]]></category>

		<guid isPermaLink="false">http://www.pkphp.com/?p=724</guid>
		<description><![CDATA[mysql有一个功能就是可以log下来运行的比较慢的sql语句，默认是没有这个log的，为了开启这个功能，
要修改...<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F10%2F05%2Fwhy-wordpress-so-slow%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F10%2F04%2Fmysql-slow-log%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">终于知道wordpress越来越慢的原因（一）</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F16%2Fmysql-optimization-script%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F10%2F04%2Fmysql-slow-log%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">mysql优化脚本！</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F16%2Fmysql%25E4%25B8%25AD%25E8%25AE%25BE%25E7%25BD%25AE%25E8%2587%25AA%25E5%25A2%259E%25E5%25AD%2597%25E6%25AE%25B5%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F10%2F04%2Fmysql-slow-log%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">MySQL中设置自增字段</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F07%2F28%2Fmysql%25E9%259A%258F%25E6%259C%25BA%25E6%259F%25A5%25E8%25AF%25A2%25E8%25BE%2593%25E5%2587%25BA%25E6%2595%25B0%25E6%258D%25AE%25E8%25AF%25AD%25E5%258F%25A5%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F10%2F04%2Fmysql-slow-log%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">mysql随机查询输出数据语句</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>mysql有一个功能就是可以log下来运行的比较慢的sql语句，默认是没有这个log的，为了开启这个功能，<br />
要修改my.cnf或者在mysql启动的时候加入一些参数。如果在my.cnf里面修改，需增加如下几行</p>
<p><code>long_query_time = 1<br />
log-slow-queries = /var/youpath/slow.log<br />
log-queries-not-using-indexes</code></p>
<p>long_query_time 是指执行超过多久的sql会被log下来，这里是1秒。<br />
log-slow-queries 设置把日志写在那里，可以为空，系统会给一个缺省的文件host_name-slow.log，<br />
log-queries-not-using-indexes 就是字面意思，log下来没有使用索引的query。</p>
<p>把上述参数打开，运行一段时间，就可以关掉了。</p>
<p>接下来就是分析了，这里的文件名字叫host-slow.log。<br />
先mysqldumpslow –help以下，e它主要用的是<br />
<code>-s ORDER what to sort by (t, at, l, al, r, ar etc), ‘at’ is default<br />
-t NUM just show the top n queries<br />
-g PATTERN grep: only consider stmts that include this string</code></p>
<p>-s，是order的顺序，说明写的不够详细，主要有<br />
c,t,l,r和ac,at,al,ar，分别是按照query次数，时间，lock的时间和返回的记录数来排序，前面加了a的时倒叙<br />
-t，是top n的意思，即为返回前面多少条的数据<br />
-g，后边可以写一个正则匹配模式，大小写不敏感的</p>
<p><code>mysqldumpslow -s c -t 20 host-slow.log<br />
mysqldumpslow -s r -t 20 host-slow.log</code></p>
<p>上述命令可以看出访问次数最多的20个sql语句和返回记录集最多的20个sql。<br />
<code>mysqldumpslow -t 10 -s t -g “left join” host-slow.log</code><br />
这个是按照时间返回前10条里面含有左连接的sql语句。</p>
<p>用了这个工具就可以查询出来那些sql语句是性能的瓶颈，进行优化，比如加索引，该应用的实现方式等。 </p>
<p><code>mysqldumpslow  -s c -t 10  /tmp/slow_query.log</code><br />
<h3 class="bsuite_related">Related items</h3>
<ul class="bsuite_related">
<li><a href='http://www.pkphp.com/2008/10/05/why-wordpress-so-slow/'>终于知道wordpress越来越慢的原因（一）</a></li>
<li><a href='http://www.pkphp.com/2008/08/16/mysql%e4%b8%ad%e8%ae%be%e7%bd%ae%e8%87%aa%e5%a2%9e%e5%ad%97%e6%ae%b5/'>MySQL中设置自增字段</a></li>
<li><a href='http://www.pkphp.com/2008/08/16/mysql-optimization-script/'>mysql优化脚本！</a></li>
<li><a href='http://www.pkphp.com/2008/07/28/mysql%e9%9a%8f%e6%9c%ba%e6%9f%a5%e8%af%a2%e8%be%93%e5%87%ba%e6%95%b0%e6%8d%ae%e8%af%ad%e5%8f%a5/'>mysql随机查询输出数据语句</a></li>
<li><a href='http://www.pkphp.com/2010/12/11/mysql%e4%b8%ad%e7%9a%84%e8%a1%a8%e6%98%be%e7%a4%ba%e2%80%9c%e4%bd%bf%e7%94%a8%e4%b8%ad%e2%80%9d%e8%a7%a3%e5%86%b3%e5%8a%9e%e6%b3%95%ef%bc%81/'>mysql中的表显示“使用中”解决办法！</a></li>
</ul>
<a href="http://www.pkphp.com/2008/10/04/mysql-slow-log/" title="mysql log-queries-not-using-indexes" style="font-size: 13px;">mysql log-queries-not-using-indexes</a>(3)<a href="http://www.pkphp.com/2008/10/04/mysql-slow-log/" title="mysql log sql 语句" style="font-size: 13px;">mysql log sql 语句</a>(1)<a href="http://www.pkphp.com/2008/10/04/mysql-slow-log/" title="mysql 慢" style="font-size: 13px;">mysql 慢</a>(4)<a href="http://www.pkphp.com/2008/10/04/mysql-slow-log/" title="mysql log-slow-queries" style="font-size: 13px;">mysql log-slow-queries</a>(3)<a href="http://www.pkphp.com/2008/10/04/mysql-slow-log/" title="mysql log 为空" style="font-size: 13px;">mysql log 为空</a>(1)<a href="http://www.pkphp.com/2008/10/04/mysql-slow-log/" title="php mysql 慢" style="font-size: 13px;">php mysql 慢</a>(3)<a href="http://www.pkphp.com/2008/10/04/mysql-slow-log/" title="php mysql慢" style="font-size: 13px;">php mysql慢</a>(1)<a href="http://www.pkphp.com/2008/10/04/mysql-slow-log/" title="apache php slowly" style="font-size: 13px;">apache php slowly</a>(1)<a href="http://www.pkphp.com/2008/10/04/mysql-slow-log/" title="mysql" style="font-size: 13px;">mysql</a>(1)<a href="http://www.pkphp.com/2008/10/04/mysql-slow-log/" title="PHP 慢" style="font-size: 13px;">PHP 慢</a>(2)<a href="http://www.pkphp.com/2008/10/04/mysql-slow-log/" title="mysqldumpslow" style="font-size: 13px;">mysqldumpslow</a>(1)<a href="http://www.pkphp.com/2008/10/04/mysql-slow-log/" title="mysql slow log设置" style="font-size: 13px;">mysql slow log设置</a>(2)<a href="http://www.pkphp.com/2008/10/04/mysql-slow-log/" title="mysql slow query 脚本分析" style="font-size: 13px;">mysql slow query 脚本分析</a>(1)<a href="http://www.pkphp.com/2008/10/04/mysql-slow-log/" title="mysql slow log分析工具" style="font-size: 13px;">mysql slow log分析工具</a>(1)<a href="http://www.pkphp.com/2008/10/04/mysql-slow-log/" title="wordpress slow" style="font-size: 13px;">wordpress slow</a>(1)<br /><table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F10%2F05%2Fwhy-wordpress-so-slow%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F10%2F04%2Fmysql-slow-log%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">终于知道wordpress越来越慢的原因（一）</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F16%2Fmysql-optimization-script%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F10%2F04%2Fmysql-slow-log%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">mysql优化脚本！</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F16%2Fmysql%25E4%25B8%25AD%25E8%25AE%25BE%25E7%25BD%25AE%25E8%2587%25AA%25E5%25A2%259E%25E5%25AD%2597%25E6%25AE%25B5%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F10%2F04%2Fmysql-slow-log%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">MySQL中设置自增字段</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F07%2F28%2Fmysql%25E9%259A%258F%25E6%259C%25BA%25E6%259F%25A5%25E8%25AF%25A2%25E8%25BE%2593%25E5%2587%25BA%25E6%2595%25B0%25E6%258D%25AE%25E8%25AF%25AD%25E5%258F%25A5%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F10%2F04%2Fmysql-slow-log%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">mysql随机查询输出数据语句</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件" rel="nofollow">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.pkphp.com/2008/10/04/mysql-slow-log/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>MySQL中设置自增字段</title>
		<link>http://www.pkphp.com/2008/08/16/mysql%e4%b8%ad%e8%ae%be%e7%bd%ae%e8%87%aa%e5%a2%9e%e5%ad%97%e6%ae%b5/</link>
		<comments>http://www.pkphp.com/2008/08/16/mysql%e4%b8%ad%e8%ae%be%e7%bd%ae%e8%87%aa%e5%a2%9e%e5%ad%97%e6%ae%b5/#comments</comments>
		<pubDate>Sat, 16 Aug 2008 05:56:16 +0000</pubDate>
		<dc:creator>askie</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[auto_increment]]></category>

		<guid isPermaLink="false">http://www.pkphp.com/?p=518</guid>
		<description><![CDATA[MySQL中设置自增字段

alter table album change ALBUM_ID ALBUM_ID bigint not null auto_increment;
alter table album auto_increment=1;

创建:
mysql>create table cc(id int auto_increment,name varchar(20),primary key(id));
修改:
mysql> alter table cc change id id int primary key auto_increment;
...<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F16%2Fmysql-optimization-script%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F16%2Fmysql%25E4%25B8%25AD%25E8%25AE%25BE%25E7%25BD%25AE%25E8%2587%25AA%25E5%25A2%259E%25E5%25AD%2597%25E6%25AE%25B5%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">mysql优化脚本！</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F10%2F04%2Fmysql-slow-log%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F16%2Fmysql%25E4%25B8%25AD%25E8%25AE%25BE%25E7%25BD%25AE%25E8%2587%25AA%25E5%25A2%259E%25E5%25AD%2597%25E6%25AE%25B5%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">mysql慢速(slow log)脚本分析</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F07%2F28%2Fmysql%25E9%259A%258F%25E6%259C%25BA%25E6%259F%25A5%25E8%25AF%25A2%25E8%25BE%2593%25E5%2587%25BA%25E6%2595%25B0%25E6%258D%25AE%25E8%25AF%25AD%25E5%258F%25A5%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F16%2Fmysql%25E4%25B8%25AD%25E8%25AE%25BE%25E7%25BD%25AE%25E8%2587%25AA%25E5%25A2%259E%25E5%25AD%2597%25E6%25AE%25B5%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">mysql随机查询输出数据语句</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F04%2F24%2Flinux%25E4%25B8%258B%25E6%2589%258B%25E5%258A%25A8%25E5%25AE%2589%25E8%25A3%2585pdo_mysql%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F16%2Fmysql%25E4%25B8%25AD%25E8%25AE%25BE%25E7%25BD%25AE%25E8%2587%25AA%25E5%25A2%259E%25E5%25AD%2597%25E6%25AE%25B5%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux下手动安装pdo_mysql</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>MySQL中设置自增字段</p>
<p>alter table album change ALBUM_ID ALBUM_ID bigint not null auto_increment;<br />
alter table album auto_increment=1;</p>
<p>创建:<br />
mysql>create table cc(id int auto_increment,name varchar(20),primary key(id));<br />
修改:<br />
mysql> alter table cc change id id int primary key auto_increment;</p>
<p>注:只有int类型且为primary key 才可以使用auto_increment.</p>
<p>如果用hibernate作为持久层,那么主键ID处用identity类型.</p>
<h3 class="bsuite_related">Related items</h3>
<ul class="bsuite_related">
<li><a href='http://www.pkphp.com/2008/10/05/why-wordpress-so-slow/'>终于知道wordpress越来越慢的原因（一）</a></li>
<li><a href='http://www.pkphp.com/2008/10/04/mysql-slow-log/'>mysql慢速(slow log)脚本分析</a></li>
<li><a href='http://www.pkphp.com/2008/08/16/mysql-optimization-script/'>mysql优化脚本！</a></li>
<li><a href='http://www.pkphp.com/2008/07/28/mysql%e9%9a%8f%e6%9c%ba%e6%9f%a5%e8%af%a2%e8%be%93%e5%87%ba%e6%95%b0%e6%8d%ae%e8%af%ad%e5%8f%a5/'>mysql随机查询输出数据语句</a></li>
<li><a href='http://www.pkphp.com/2010/12/11/mysql%e4%b8%ad%e7%9a%84%e8%a1%a8%e6%98%be%e7%a4%ba%e2%80%9c%e4%bd%bf%e7%94%a8%e4%b8%ad%e2%80%9d%e8%a7%a3%e5%86%b3%e5%8a%9e%e6%b3%95%ef%bc%81/'>mysql中的表显示“使用中”解决办法！</a></li>
</ul>
<a href="http://www.pkphp.com/2008/08/16/mysql%e4%b8%ad%e8%ae%be%e7%bd%ae%e8%87%aa%e5%a2%9e%e5%ad%97%e6%ae%b5/" title="http://www.pkphp.com/" style="font-size: 13px;">http://www.pkphp.com/</a>(2)<a href="http://www.pkphp.com/2008/08/16/mysql%e4%b8%ad%e8%ae%be%e7%bd%ae%e8%87%aa%e5%a2%9e%e5%ad%97%e6%ae%b5/" title="mysql设置自增id" style="font-size: 13px;">mysql设置自增id</a>(1)<a href="http://www.pkphp.com/2008/08/16/mysql%e4%b8%ad%e8%ae%be%e7%bd%ae%e8%87%aa%e5%a2%9e%e5%ad%97%e6%ae%b5/" title="mysql自增类型" style="font-size: 13px;">mysql自增类型</a>(1)<a href="http://www.pkphp.com/2008/08/16/mysql%e4%b8%ad%e8%ae%be%e7%bd%ae%e8%87%aa%e5%a2%9e%e5%ad%97%e6%ae%b5/" title="MYSQL中关键字作为字段" style="font-size: 13px;">MYSQL中关键字作为字段</a>(1)<a href="http://www.pkphp.com/2008/08/16/mysql%e4%b8%ad%e8%ae%be%e7%bd%ae%e8%87%aa%e5%a2%9e%e5%ad%97%e6%ae%b5/" title="auto mysql id" style="font-size: 13px;">auto mysql id</a>(1)<a href="http://www.pkphp.com/2008/08/16/mysql%e4%b8%ad%e8%ae%be%e7%bd%ae%e8%87%aa%e5%a2%9e%e5%ad%97%e6%ae%b5/" title="无聊 site:pkphp.com" style="font-size: 13px;">无聊 site:pkphp.com</a>(3)<a href="http://www.pkphp.com/2008/08/16/mysql%e4%b8%ad%e8%ae%be%e7%bd%ae%e8%87%aa%e5%a2%9e%e5%ad%97%e6%ae%b5/" title="mysql alert auto =1" style="font-size: 13px;">mysql alert auto =1</a>(1)<a href="http://www.pkphp.com/2008/08/16/mysql%e4%b8%ad%e8%ae%be%e7%bd%ae%e8%87%aa%e5%a2%9e%e5%ad%97%e6%ae%b5/" title="mysql 自增字段" style="font-size: 13px;">mysql 自增字段</a>(14)<a href="http://www.pkphp.com/2008/08/16/mysql%e4%b8%ad%e8%ae%be%e7%bd%ae%e8%87%aa%e5%a2%9e%e5%ad%97%e6%ae%b5/" title="mysql设置自增" style="font-size: 13px;">mysql设置自增</a>(4)<a href="http://www.pkphp.com/2008/08/16/mysql%e4%b8%ad%e8%ae%be%e7%bd%ae%e8%87%aa%e5%a2%9e%e5%ad%97%e6%ae%b5/" title="mysql字段自增1" style="font-size: 13px;">mysql字段自增1</a>(1)<a href="http://www.pkphp.com/2008/08/16/mysql%e4%b8%ad%e8%ae%be%e7%bd%ae%e8%87%aa%e5%a2%9e%e5%ad%97%e6%ae%b5/" title="mysql 自增id" style="font-size: 13px;">mysql 自增id</a>(3)<a href="http://www.pkphp.com/2008/08/16/mysql%e4%b8%ad%e8%ae%be%e7%bd%ae%e8%87%aa%e5%a2%9e%e5%ad%97%e6%ae%b5/" title="mysql 字段 自增设置" style="font-size: 13px;">mysql 字段 自增设置</a>(1)<a href="http://www.pkphp.com/2008/08/16/mysql%e4%b8%ad%e8%ae%be%e7%bd%ae%e8%87%aa%e5%a2%9e%e5%ad%97%e6%ae%b5/" title="mysql id" style="font-size: 13px;">mysql id</a>(1)<a href="http://www.pkphp.com/2008/08/16/mysql%e4%b8%ad%e8%ae%be%e7%bd%ae%e8%87%aa%e5%a2%9e%e5%ad%97%e6%ae%b5/" title="mysql自增字段" style="font-size: 13px;">mysql自增字段</a>(3)<a href="http://www.pkphp.com/2008/08/16/mysql%e4%b8%ad%e8%ae%be%e7%bd%ae%e8%87%aa%e5%a2%9e%e5%ad%97%e6%ae%b5/" title="mysql设置id自增" style="font-size: 13px;">mysql设置id自增</a>(1)<br /><table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F16%2Fmysql-optimization-script%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F16%2Fmysql%25E4%25B8%25AD%25E8%25AE%25BE%25E7%25BD%25AE%25E8%2587%25AA%25E5%25A2%259E%25E5%25AD%2597%25E6%25AE%25B5%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">mysql优化脚本！</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F10%2F04%2Fmysql-slow-log%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F16%2Fmysql%25E4%25B8%25AD%25E8%25AE%25BE%25E7%25BD%25AE%25E8%2587%25AA%25E5%25A2%259E%25E5%25AD%2597%25E6%25AE%25B5%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">mysql慢速(slow log)脚本分析</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F07%2F28%2Fmysql%25E9%259A%258F%25E6%259C%25BA%25E6%259F%25A5%25E8%25AF%25A2%25E8%25BE%2593%25E5%2587%25BA%25E6%2595%25B0%25E6%258D%25AE%25E8%25AF%25AD%25E5%258F%25A5%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F16%2Fmysql%25E4%25B8%25AD%25E8%25AE%25BE%25E7%25BD%25AE%25E8%2587%25AA%25E5%25A2%259E%25E5%25AD%2597%25E6%25AE%25B5%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">mysql随机查询输出数据语句</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F04%2F24%2Flinux%25E4%25B8%258B%25E6%2589%258B%25E5%258A%25A8%25E5%25AE%2589%25E8%25A3%2585pdo_mysql%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F16%2Fmysql%25E4%25B8%25AD%25E8%25AE%25BE%25E7%25BD%25AE%25E8%2587%25AA%25E5%25A2%259E%25E5%25AD%2597%25E6%25AE%25B5%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux下手动安装pdo_mysql</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件" rel="nofollow">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.pkphp.com/2008/08/16/mysql%e4%b8%ad%e8%ae%be%e7%bd%ae%e8%87%aa%e5%a2%9e%e5%ad%97%e6%ae%b5/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>mysql优化脚本！</title>
		<link>http://www.pkphp.com/2008/08/16/mysql-optimization-script/</link>
		<comments>http://www.pkphp.com/2008/08/16/mysql-optimization-script/#comments</comments>
		<pubDate>Sat, 16 Aug 2008 04:45:42 +0000</pubDate>
		<dc:creator>askie</dc:creator>
				<category><![CDATA[LAMP]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[优化]]></category>
		<category><![CDATA[脚本]]></category>

		<guid isPermaLink="false">http://www.pkphp.com/?p=515</guid>
		<description><![CDATA[[mysqld]
#port = 3306
#socket = /tmp/mysql.sock
#socket = /var/lib/mysql/mysql.sock
#skip-locking
key_buffer = 128M
max_allowed_packet = 1M
table_cache = 256
sort_buffer_size = 1M
net_buffer_length = 16K
myisam_sort_buffer_size = 1M
max_connections=120
#addnew config
wait_timeout =120...<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F10%2F04%2Fmysql-slow-log%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F16%2Fmysql-optimization-script%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">mysql慢速(slow log)脚本分析</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F07%2F28%2Fmysql%25E9%259A%258F%25E6%259C%25BA%25E6%259F%25A5%25E8%25AF%25A2%25E8%25BE%2593%25E5%2587%25BA%25E6%2595%25B0%25E6%258D%25AE%25E8%25AF%25AD%25E5%258F%25A5%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F16%2Fmysql-optimization-script%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">mysql随机查询输出数据语句</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F16%2Fmysql%25E4%25B8%25AD%25E8%25AE%25BE%25E7%25BD%25AE%25E8%2587%25AA%25E5%25A2%259E%25E5%25AD%2597%25E6%25AE%25B5%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F16%2Fmysql-optimization-script%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">MySQL中设置自增字段</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F04%2F24%2Flinux%25E4%25B8%258B%25E6%2589%258B%25E5%258A%25A8%25E5%25AE%2589%25E8%25A3%2585pdo_mysql%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F16%2Fmysql-optimization-script%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux下手动安装pdo_mysql</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p><code><br />
[mysqld]<br />
#port = 3306<br />
#socket = /tmp/mysql.sock<br />
#socket = /var/lib/mysql/mysql.sock<br />
#skip-locking<br />
key_buffer = 128M<br />
max_allowed_packet = 1M<br />
table_cache = 256<br />
sort_buffer_size = 1M<br />
net_buffer_length = 16K<br />
myisam_sort_buffer_size = 1M<br />
max_connections=120<br />
#addnew config<br />
wait_timeout =120<br />
back_log=100<br />
read_buffer_size = 1M<br />
thread_cache=32<br />
#skip-innodb<br />
#skip-bdb<br />
#skip-name-resolve<br />
join_buffer_size=512k<br />
query_cache_size = 64M<br />
interactive_timeout=120<br />
long_query_time=10<br />
log_slow_queries= /usr/local/mysql/slow_query.log<br />
query_cache_type= 1<br />
# Try number of CPU's*2 for thread_concurrency<br />
thread_concurrency = 4<br />
</code><br />
<h3 class="bsuite_related">Related items</h3>
<ul class="bsuite_related">
<li><a href='http://www.pkphp.com/2008/10/05/why-wordpress-so-slow/'>终于知道wordpress越来越慢的原因（一）</a></li>
<li><a href='http://www.pkphp.com/2008/10/04/mysql-slow-log/'>mysql慢速(slow log)脚本分析</a></li>
<li><a href='http://www.pkphp.com/2008/08/16/mysql%e4%b8%ad%e8%ae%be%e7%bd%ae%e8%87%aa%e5%a2%9e%e5%ad%97%e6%ae%b5/'>MySQL中设置自增字段</a></li>
<li><a href='http://www.pkphp.com/2008/08/11/ubuntu%e4%b8%8b%e5%ae%89%e8%a3%85-apachephpmysql%e6%96%87%e6%9c%ac%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%81/'>Ubuntu下安装 apache+php+mysql文本服务器！</a></li>
<li><a href='http://www.pkphp.com/2008/07/28/mysql%e9%9a%8f%e6%9c%ba%e6%9f%a5%e8%af%a2%e8%be%93%e5%87%ba%e6%95%b0%e6%8d%ae%e8%af%ad%e5%8f%a5/'>mysql随机查询输出数据语句</a></li>
</ul>
<a href="http://www.pkphp.com/2008/08/16/mysql-optimization-script/" title="mysql优化" style="font-size: 13px;">mysql优化</a>(7)<a href="http://www.pkphp.com/2008/08/16/mysql-optimization-script/" title="mysql 优化" style="font-size: 13px;">mysql 优化</a>(4)<a href="http://www.pkphp.com/2008/08/16/mysql-optimization-script/" title="php mysql 优化" style="font-size: 13px;">php mysql 优化</a>(14)<a href="http://www.pkphp.com/2008/08/16/mysql-optimization-script/" title="mysql" style="font-size: 13px;">mysql</a>(2)<a href="http://www.pkphp.com/2008/08/16/mysql-optimization-script/" title="mysql COMMENT" style="font-size: 13px;">mysql COMMENT</a>(3)<a href="http://www.pkphp.com/2008/08/16/mysql-optimization-script/" title="php mysql优化" style="font-size: 13px;">php mysql优化</a>(12)<a href="http://www.pkphp.com/2008/08/16/mysql-optimization-script/" title="mysql 优化脚本" style="font-size: 13px;">mysql 优化脚本</a>(3)<a href="http://www.pkphp.com/2008/08/16/mysql-optimization-script/" title="mysql优化脚本" style="font-size: 13px;">mysql优化脚本</a>(1)<a href="http://www.pkphp.com/2008/08/16/mysql-optimization-script/" title="php mysql 優化" style="font-size: 13px;">php mysql 優化</a>(1)<a href="http://www.pkphp.com/2008/08/16/mysql-optimization-script/" title="musql comment" style="font-size: 13px;">musql comment</a>(1)<a href="http://www.pkphp.com/2008/08/16/mysql-optimization-script/" title="mysql 优化 脚本" style="font-size: 13px;">mysql 优化 脚本</a>(1)<a href="http://www.pkphp.com/2008/08/16/mysql-optimization-script/" title="ubuntu mysql 优化" style="font-size: 13px;">ubuntu mysql 优化</a>(2)<a href="http://www.pkphp.com/2008/08/16/mysql-optimization-script/" title="mysql Slow_Query" style="font-size: 13px;">mysql Slow_Query</a>(2)<a href="http://www.pkphp.com/2008/08/16/mysql-optimization-script/" title="mysql脚本 comment" style="font-size: 13px;">mysql脚本 comment</a>(1)<a href="http://www.pkphp.com/2008/08/16/mysql-optimization-script/" title="vps mysql 优化" style="font-size: 13px;">vps mysql 优化</a>(2)<br /><table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F10%2F04%2Fmysql-slow-log%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F16%2Fmysql-optimization-script%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">mysql慢速(slow log)脚本分析</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F07%2F28%2Fmysql%25E9%259A%258F%25E6%259C%25BA%25E6%259F%25A5%25E8%25AF%25A2%25E8%25BE%2593%25E5%2587%25BA%25E6%2595%25B0%25E6%258D%25AE%25E8%25AF%25AD%25E5%258F%25A5%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F16%2Fmysql-optimization-script%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">mysql随机查询输出数据语句</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F16%2Fmysql%25E4%25B8%25AD%25E8%25AE%25BE%25E7%25BD%25AE%25E8%2587%25AA%25E5%25A2%259E%25E5%25AD%2597%25E6%25AE%25B5%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F16%2Fmysql-optimization-script%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">MySQL中设置自增字段</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F04%2F24%2Flinux%25E4%25B8%258B%25E6%2589%258B%25E5%258A%25A8%25E5%25AE%2589%25E8%25A3%2585pdo_mysql%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F16%2Fmysql-optimization-script%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux下手动安装pdo_mysql</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件" rel="nofollow">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.pkphp.com/2008/08/16/mysql-optimization-script/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Ubuntu下安装 apache+php+mysql文本服务器！</title>
		<link>http://www.pkphp.com/2008/08/11/ubuntu%e4%b8%8b%e5%ae%89%e8%a3%85-apachephpmysql%e6%96%87%e6%9c%ac%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%81/</link>
		<comments>http://www.pkphp.com/2008/08/11/ubuntu%e4%b8%8b%e5%ae%89%e8%a3%85-apachephpmysql%e6%96%87%e6%9c%ac%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%81/#comments</comments>
		<pubDate>Mon, 11 Aug 2008 10:33:52 +0000</pubDate>
		<dc:creator>askie</dc:creator>
				<category><![CDATA[LAMP]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[服务器]]></category>

		<guid isPermaLink="false">http://www.pkphp.com/?p=495</guid>
		<description><![CDATA[ubuntu实在是太牛了，很简单的方法就安装完毕web服务器，只需要按顺序执行以下命令即可： Once again, here&#8217;s my updated simple installation of Apache, PHP and MySQL in Ubuntu 8.04 LTS (Hardy Heron) Server. Install SSH Client and Server (for my remote access) sudo apt-get install ssh Install Database Server sudo apt-get install mysql-server-5.0 Install Apache HTTP Server sudo apt-get install apache2 Install PHP5 and Apache PHP5 module sudo [...]<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F06%2F05%2Fapache2-mod_ssl-php5-%25E5%25AE%258C%25E5%2585%25A8%25E5%25AE%2589%25E8%25A3%2585%25E5%25AE%259E%25E5%25BD%2595%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F11%2Fubuntu%25E4%25B8%258B%25E5%25AE%2589%25E8%25A3%2585-apachephpmysql%25E6%2596%2587%25E6%259C%25AC%25E6%259C%258D%25E5%258A%25A1%25E5%2599%25A8%25EF%25BC%2581%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Apache2 + mod_ssl + php5 完全安装实录</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F16%2Fmysql-optimization-script%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F11%2Fubuntu%25E4%25B8%258B%25E5%25AE%2589%25E8%25A3%2585-apachephpmysql%25E6%2596%2587%25E6%259C%25AC%25E6%259C%258D%25E5%258A%25A1%25E5%2599%25A8%25EF%25BC%2581%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">mysql优化脚本！</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F10%2F04%2Flinux%25E5%25AE%2589%25E8%25A3%2585awstats%25E5%25AF%25B9apache%25E6%2597%25A5%25E5%25BF%2597%25E8%25BF%259B%25E8%25A1%258C%25E7%259B%2591%25E6%25B5%258B%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F11%2Fubuntu%25E4%25B8%258B%25E5%25AE%2589%25E8%25A3%2585-apachephpmysql%25E6%2596%2587%25E6%259C%25AC%25E6%259C%258D%25E5%258A%25A1%25E5%2599%25A8%25EF%25BC%2581%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux安装awstats对apache日志进行监测</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F04%2F27%2F%25E8%25AE%25A9mysql-%25E4%25B8%258E-apache-%25E5%259C%25A8%25E7%25B3%25BB%25E7%25BB%259F%25E5%2590%25AF%25E5%258A%25A8%25E6%2597%25B6%25E8%2587%25AA%25E5%258A%25A8%25E8%25BF%2590%25E8%25A1%258C%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F11%2Fubuntu%25E4%25B8%258B%25E5%25AE%2589%25E8%25A3%2585-apachephpmysql%25E6%2596%2587%25E6%259C%25AC%25E6%259C%258D%25E5%258A%25A1%25E5%2599%25A8%25EF%25BC%2581%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">让mysql 与 apache 在系统启动时自动运行</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>ubuntu实在是太牛了，很简单的方法就安装完毕web服务器，只需要按顺序执行以下命令即可：</p>
<p>Once again, here&#8217;s my updated simple installation of Apache, PHP and MySQL in Ubuntu 8.04 LTS (Hardy Heron) Server.</p>
<p>Install SSH Client and Server (for my remote access)<br />
<code>sudo apt-get install ssh<br />
</code><br />
Install Database Server<br />
<code>sudo apt-get install mysql-server-5.0<br />
</code><br />
Install Apache HTTP Server<br />
<code>sudo apt-get install apache2<br />
</code><br />
Install PHP5 and Apache PHP5 module<br />
<code>sudo apt-get install php5 libapache2-mod-php5<br />
</code><br />
Restart Apache<br />
<code>sudo /etc/init.d/apache2 restart<br />
</code><br />
Optionally, install phpMyAdmin<br />
<code>sudo apt-get install phpmyadmin<br />
</code></p>
<p>Enjoy!</p>
<p>怎么样？简单吧！除去下载的时间，要不了一分钟就可以完成配置，在 Ubuntu 上还需要 APM 包吗？还是记住以下几个命令和位置就行了。</p>
<p><code>sudo /etc/init.d/apache2 restart （重启 apache）</code></p>
<p><code>sudo gedit /etc/php5/apache2/php.ini （配置 php.ini）</code></p>
<p><code>sudo gedit /etc/apache2/apache2.conf （配置 apache2.conf）</code></p>
<p><code>/var/www/（主目录位置）</code><br />
<h3 class="bsuite_related">Related items</h3>
<ul class="bsuite_related">
<li><a href='http://www.pkphp.com/2009/02/17/%e8%bd%ac%e5%bc%80%e6%ba%90php%e4%b8%ad%e6%96%87%e5%88%86%e8%af%8d%e6%89%a9%e5%b1%95phpcws-100%e5%8f%91%e5%b8%83%e5%95%a6/'>[转]开源PHP中文分词扩展:PHPCWS 1.0.0发布啦</a></li>
<li><a href='http://www.pkphp.com/2008/10/04/linux%e5%ae%89%e8%a3%85awstats%e5%af%b9apache%e6%97%a5%e5%bf%97%e8%bf%9b%e8%a1%8c%e7%9b%91%e6%b5%8b/'>linux安装awstats对apache日志进行监测</a></li>
<li><a href='http://www.pkphp.com/2008/09/29/ubuntu-remote-desktop-nxclient-nxserver-nxnode/'>如何实现ubuntu桌面远程控制？</a></li>
<li><a href='http://www.pkphp.com/2008/09/02/apache-config-directory-virtualhost/'>apache中虚拟目录和虚拟主机设置</a></li>
<li><a href='http://www.pkphp.com/2008/08/30/520zuixin-com-linux-secure-iptables/'>如何防止服务器被暴力破解密码？</a></li>
</ul>
<a href="http://www.pkphp.com/2008/08/11/ubuntu%e4%b8%8b%e5%ae%89%e8%a3%85-apachephpmysql%e6%96%87%e6%9c%ac%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%81/" title="http://www.pkphp.com/" style="font-size: 13px;">http://www.pkphp.com/</a>(5)<a href="http://www.pkphp.com/2008/08/11/ubuntu%e4%b8%8b%e5%ae%89%e8%a3%85-apachephpmysql%e6%96%87%e6%9c%ac%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%81/" title="ubuntu php apache mysql" style="font-size: 13px;">ubuntu php apache mysql</a>(32)<a href="http://www.pkphp.com/2008/08/11/ubuntu%e4%b8%8b%e5%ae%89%e8%a3%85-apachephpmysql%e6%96%87%e6%9c%ac%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%81/" title="ubuntu php mysql" style="font-size: 13px;">ubuntu php mysql</a>(71)<a href="http://www.pkphp.com/2008/08/11/ubuntu%e4%b8%8b%e5%ae%89%e8%a3%85-apachephpmysql%e6%96%87%e6%9c%ac%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%81/" title="ubuntu apache php" style="font-size: 13px;">ubuntu apache php</a>(108)<a href="http://www.pkphp.com/2008/08/11/ubuntu%e4%b8%8b%e5%ae%89%e8%a3%85-apachephpmysql%e6%96%87%e6%9c%ac%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%81/" title="ubuntu apache php 安装" style="font-size: 13px;">ubuntu apache php 安装</a>(10)<a href="http://www.pkphp.com/2008/08/11/ubuntu%e4%b8%8b%e5%ae%89%e8%a3%85-apachephpmysql%e6%96%87%e6%9c%ac%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%81/" title="apache php" style="font-size: 13px;">apache php</a>(4)<a href="http://www.pkphp.com/2008/08/11/ubuntu%e4%b8%8b%e5%ae%89%e8%a3%85-apachephpmysql%e6%96%87%e6%9c%ac%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%81/" title="ubuntu php配置" style="font-size: 13px;">ubuntu php配置</a>(31)<a href="http://www.pkphp.com/2008/08/11/ubuntu%e4%b8%8b%e5%ae%89%e8%a3%85-apachephpmysql%e6%96%87%e6%9c%ac%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%81/" title="ubuntu下php apache安装" style="font-size: 13px;">ubuntu下php apache安装</a>(1)<a href="http://www.pkphp.com/2008/08/11/ubuntu%e4%b8%8b%e5%ae%89%e8%a3%85-apachephpmysql%e6%96%87%e6%9c%ac%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%81/" title="apache 配置" style="font-size: 13px;">apache 配置</a>(4)<a href="http://www.pkphp.com/2008/08/11/ubuntu%e4%b8%8b%e5%ae%89%e8%a3%85-apachephpmysql%e6%96%87%e6%9c%ac%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%81/" title="php 安装" style="font-size: 13px;">php 安装</a>(3)<a href="http://www.pkphp.com/2008/08/11/ubuntu%e4%b8%8b%e5%ae%89%e8%a3%85-apachephpmysql%e6%96%87%e6%9c%ac%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%81/" title="Ubuntu PHP" style="font-size: 13px;">Ubuntu PHP</a>(33)<a href="http://www.pkphp.com/2008/08/11/ubuntu%e4%b8%8b%e5%ae%89%e8%a3%85-apachephpmysql%e6%96%87%e6%9c%ac%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%81/" title="ubuntu mysql" style="font-size: 13px;">ubuntu mysql</a>(13)<a href="http://www.pkphp.com/2008/08/11/ubuntu%e4%b8%8b%e5%ae%89%e8%a3%85-apachephpmysql%e6%96%87%e6%9c%ac%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%81/" title="ubuntu 设置apache" style="font-size: 13px;">ubuntu 设置apache</a>(1)<a href="http://www.pkphp.com/2008/08/11/ubuntu%e4%b8%8b%e5%ae%89%e8%a3%85-apachephpmysql%e6%96%87%e6%9c%ac%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%81/" title="apache,php,mysql 安装" style="font-size: 13px;">apache,php,mysql 安装</a>(1)<a href="http://www.pkphp.com/2008/08/11/ubuntu%e4%b8%8b%e5%ae%89%e8%a3%85-apachephpmysql%e6%96%87%e6%9c%ac%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%81/" title="ubuntu mysql php apache" style="font-size: 13px;">ubuntu mysql php apache</a>(8)<br /><table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F06%2F05%2Fapache2-mod_ssl-php5-%25E5%25AE%258C%25E5%2585%25A8%25E5%25AE%2589%25E8%25A3%2585%25E5%25AE%259E%25E5%25BD%2595%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F11%2Fubuntu%25E4%25B8%258B%25E5%25AE%2589%25E8%25A3%2585-apachephpmysql%25E6%2596%2587%25E6%259C%25AC%25E6%259C%258D%25E5%258A%25A1%25E5%2599%25A8%25EF%25BC%2581%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Apache2 + mod_ssl + php5 完全安装实录</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F16%2Fmysql-optimization-script%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F11%2Fubuntu%25E4%25B8%258B%25E5%25AE%2589%25E8%25A3%2585-apachephpmysql%25E6%2596%2587%25E6%259C%25AC%25E6%259C%258D%25E5%258A%25A1%25E5%2599%25A8%25EF%25BC%2581%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">mysql优化脚本！</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F10%2F04%2Flinux%25E5%25AE%2589%25E8%25A3%2585awstats%25E5%25AF%25B9apache%25E6%2597%25A5%25E5%25BF%2597%25E8%25BF%259B%25E8%25A1%258C%25E7%259B%2591%25E6%25B5%258B%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F11%2Fubuntu%25E4%25B8%258B%25E5%25AE%2589%25E8%25A3%2585-apachephpmysql%25E6%2596%2587%25E6%259C%25AC%25E6%259C%258D%25E5%258A%25A1%25E5%2599%25A8%25EF%25BC%2581%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux安装awstats对apache日志进行监测</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F04%2F27%2F%25E8%25AE%25A9mysql-%25E4%25B8%258E-apache-%25E5%259C%25A8%25E7%25B3%25BB%25E7%25BB%259F%25E5%2590%25AF%25E5%258A%25A8%25E6%2597%25B6%25E8%2587%25AA%25E5%258A%25A8%25E8%25BF%2590%25E8%25A1%258C%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F11%2Fubuntu%25E4%25B8%258B%25E5%25AE%2589%25E8%25A3%2585-apachephpmysql%25E6%2596%2587%25E6%259C%25AC%25E6%259C%258D%25E5%258A%25A1%25E5%2599%25A8%25EF%25BC%2581%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">让mysql 与 apache 在系统启动时自动运行</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件" rel="nofollow">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.pkphp.com/2008/08/11/ubuntu%e4%b8%8b%e5%ae%89%e8%a3%85-apachephpmysql%e6%96%87%e6%9c%ac%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%81/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>mysql随机查询输出数据语句</title>
		<link>http://www.pkphp.com/2008/07/28/mysql%e9%9a%8f%e6%9c%ba%e6%9f%a5%e8%af%a2%e8%be%93%e5%87%ba%e6%95%b0%e6%8d%ae%e8%af%ad%e5%8f%a5/</link>
		<comments>http://www.pkphp.com/2008/07/28/mysql%e9%9a%8f%e6%9c%ba%e6%9f%a5%e8%af%a2%e8%be%93%e5%87%ba%e6%95%b0%e6%8d%ae%e8%af%ad%e5%8f%a5/#comments</comments>
		<pubDate>Mon, 28 Jul 2008 14:49:20 +0000</pubDate>
		<dc:creator>askie</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[数据]]></category>
		<category><![CDATA[查询]]></category>
		<category><![CDATA[随机]]></category>

		<guid isPermaLink="false">http://www.pkphp.com/?p=362</guid>
		<description><![CDATA[原来以为mysql没有随机输出数据的方法呢，google后还是搜索到了结果，代码如下：
select * from tablename order by rand() limit 10
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F16%2Fmysql-optimization-script%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F07%2F28%2Fmysql%25E9%259A%258F%25E6%259C%25BA%25E6%259F%25A5%25E8%25AF%25A2%25E8%25BE%2593%25E5%2587%25BA%25E6%2595%25B0%25E6%258D%25AE%25E8%25AF%25AD%25E5%258F%25A5%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">mysql优化脚本！</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F10%2F04%2Fmysql-slow-log%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F07%2F28%2Fmysql%25E9%259A%258F%25E6%259C%25BA%25E6%259F%25A5%25E8%25AF%25A2%25E8%25BE%2593%25E5%2587%25BA%25E6%2595%25B0%25E6%258D%25AE%25E8%25AF%25AD%25E5%258F%25A5%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">mysql慢速(slow log)脚本分析</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F16%2Fmysql%25E4%25B8%25AD%25E8%25AE%25BE%25E7%25BD%25AE%25E8%2587%25AA%25E5%25A2%259E%25E5%25AD%2597%25E6%25AE%25B5%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F07%2F28%2Fmysql%25E9%259A%258F%25E6%259C%25BA%25E6%259F%25A5%25E8%25AF%25A2%25E8%25BE%2593%25E5%2587%25BA%25E6%2595%25B0%25E6%258D%25AE%25E8%25AF%25AD%25E5%258F%25A5%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">MySQL中设置自增字段</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F10%2F15%2F%25E4%25BD%25BF%25E7%2594%25A8sql_calc_found_rows%25E8%258E%25B7%25E5%258F%2596mysql%25E6%259F%25A5%25E8%25AF%25A2%25E8%25AE%25B0%25E5%25BD%2595%25E6%2580%25BB%25E6%2595%25B0%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F07%2F28%2Fmysql%25E9%259A%258F%25E6%259C%25BA%25E6%259F%25A5%25E8%25AF%25A2%25E8%25BE%2593%25E5%2587%25BA%25E6%2595%25B0%25E6%258D%25AE%25E8%25AF%25AD%25E5%258F%25A5%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">使用SQL_CALC_FOUND_ROWS获取mysql查询记录总数</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>原来以为mysql没有随机输出数据的方法呢，google后还是搜索到了结果，代码如下：<br />
<code>select * from tablename order by rand() limit 10</code></p>
<h3 class="bsuite_related">Related items</h3>
<ul class="bsuite_related">
<li><a href='http://www.pkphp.com/2008/10/05/why-wordpress-so-slow/'>终于知道wordpress越来越慢的原因（一）</a></li>
<li><a href='http://www.pkphp.com/2008/10/04/mysql-slow-log/'>mysql慢速(slow log)脚本分析</a></li>
<li><a href='http://www.pkphp.com/2008/08/16/mysql%e4%b8%ad%e8%ae%be%e7%bd%ae%e8%87%aa%e5%a2%9e%e5%ad%97%e6%ae%b5/'>MySQL中设置自增字段</a></li>
<li><a href='http://www.pkphp.com/2008/08/16/mysql-optimization-script/'>mysql优化脚本！</a></li>
<li><a href='http://www.pkphp.com/2010/12/11/mysql%e4%b8%ad%e7%9a%84%e8%a1%a8%e6%98%be%e7%a4%ba%e2%80%9c%e4%bd%bf%e7%94%a8%e4%b8%ad%e2%80%9d%e8%a7%a3%e5%86%b3%e5%8a%9e%e6%b3%95%ef%bc%81/'>mysql中的表显示“使用中”解决办法！</a></li>
</ul>
<a href="http://www.pkphp.com/2008/07/28/mysql%e9%9a%8f%e6%9c%ba%e6%9f%a5%e8%af%a2%e8%be%93%e5%87%ba%e6%95%b0%e6%8d%ae%e8%af%ad%e5%8f%a5/" title="http://www.pkphp.com/" style="font-size: 13px;">http://www.pkphp.com/</a>(3)<a href="http://www.pkphp.com/2008/07/28/mysql%e9%9a%8f%e6%9c%ba%e6%9f%a5%e8%af%a2%e8%be%93%e5%87%ba%e6%95%b0%e6%8d%ae%e8%af%ad%e5%8f%a5/" title="mysql 随机函数" style="font-size: 13px;">mysql 随机函数</a>(4)<a href="http://www.pkphp.com/2008/07/28/mysql%e9%9a%8f%e6%9c%ba%e6%9f%a5%e8%af%a2%e8%be%93%e5%87%ba%e6%95%b0%e6%8d%ae%e8%af%ad%e5%8f%a5/" title="mysql 随机查找" style="font-size: 13px;">mysql 随机查找</a>(2)<a href="http://www.pkphp.com/2008/07/28/mysql%e9%9a%8f%e6%9c%ba%e6%9f%a5%e8%af%a2%e8%be%93%e5%87%ba%e6%95%b0%e6%8d%ae%e8%af%ad%e5%8f%a5/" title="mysql查询 输出语句" style="font-size: 13px;">mysql查询 输出语句</a>(1)<a href="http://www.pkphp.com/2008/07/28/mysql%e9%9a%8f%e6%9c%ba%e6%9f%a5%e8%af%a2%e8%be%93%e5%87%ba%e6%95%b0%e6%8d%ae%e8%af%ad%e5%8f%a5/" title="mysql 随机记录" style="font-size: 13px;">mysql 随机记录</a>(2)<a href="http://www.pkphp.com/2008/07/28/mysql%e9%9a%8f%e6%9c%ba%e6%9f%a5%e8%af%a2%e8%be%93%e5%87%ba%e6%95%b0%e6%8d%ae%e8%af%ad%e5%8f%a5/" title="php输出 mysql语句" style="font-size: 13px;">php输出 mysql语句</a>(1)<a href="http://www.pkphp.com/2008/07/28/mysql%e9%9a%8f%e6%9c%ba%e6%9f%a5%e8%af%a2%e8%be%93%e5%87%ba%e6%95%b0%e6%8d%ae%e8%af%ad%e5%8f%a5/" title="mysql" style="font-size: 13px;">mysql</a>(1)<a href="http://www.pkphp.com/2008/07/28/mysql%e9%9a%8f%e6%9c%ba%e6%9f%a5%e8%af%a2%e8%be%93%e5%87%ba%e6%95%b0%e6%8d%ae%e8%af%ad%e5%8f%a5/" title="mysql 随机查询" style="font-size: 13px;">mysql 随机查询</a>(12)<a href="http://www.pkphp.com/2008/07/28/mysql%e9%9a%8f%e6%9c%ba%e6%9f%a5%e8%af%a2%e8%be%93%e5%87%ba%e6%95%b0%e6%8d%ae%e8%af%ad%e5%8f%a5/" title="随机提取 mysql" style="font-size: 13px;">随机提取 mysql</a>(1)<a href="http://www.pkphp.com/2008/07/28/mysql%e9%9a%8f%e6%9c%ba%e6%9f%a5%e8%af%a2%e8%be%93%e5%87%ba%e6%95%b0%e6%8d%ae%e8%af%ad%e5%8f%a5/" title="php mysql 随机 字段 一条" style="font-size: 13px;">php mysql 随机 字段 一条</a>(1)<a href="http://www.pkphp.com/2008/07/28/mysql%e9%9a%8f%e6%9c%ba%e6%9f%a5%e8%af%a2%e8%be%93%e5%87%ba%e6%95%b0%e6%8d%ae%e8%af%ad%e5%8f%a5/" title="mysql 随机 条件 查询" style="font-size: 13px;">mysql 随机 条件 查询</a>(1)<a href="http://www.pkphp.com/2008/07/28/mysql%e9%9a%8f%e6%9c%ba%e6%9f%a5%e8%af%a2%e8%be%93%e5%87%ba%e6%95%b0%e6%8d%ae%e8%af%ad%e5%8f%a5/" title="php mysql 随机查找" style="font-size: 13px;">php mysql 随机查找</a>(1)<a href="http://www.pkphp.com/2008/07/28/mysql%e9%9a%8f%e6%9c%ba%e6%9f%a5%e8%af%a2%e8%be%93%e5%87%ba%e6%95%b0%e6%8d%ae%e8%af%ad%e5%8f%a5/" title="mysql 查询随机记录" style="font-size: 13px;">mysql 查询随机记录</a>(1)<a href="http://www.pkphp.com/2008/07/28/mysql%e9%9a%8f%e6%9c%ba%e6%9f%a5%e8%af%a2%e8%be%93%e5%87%ba%e6%95%b0%e6%8d%ae%e8%af%ad%e5%8f%a5/" title="zend framework mysql 随机" style="font-size: 13px;">zend framework mysql 随机</a>(1)<a href="http://www.pkphp.com/2008/07/28/mysql%e9%9a%8f%e6%9c%ba%e6%9f%a5%e8%af%a2%e8%be%93%e5%87%ba%e6%95%b0%e6%8d%ae%e8%af%ad%e5%8f%a5/" title="随机查询" style="font-size: 13px;">随机查询</a>(1)<br /><table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F16%2Fmysql-optimization-script%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F07%2F28%2Fmysql%25E9%259A%258F%25E6%259C%25BA%25E6%259F%25A5%25E8%25AF%25A2%25E8%25BE%2593%25E5%2587%25BA%25E6%2595%25B0%25E6%258D%25AE%25E8%25AF%25AD%25E5%258F%25A5%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">mysql优化脚本！</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F10%2F04%2Fmysql-slow-log%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F07%2F28%2Fmysql%25E9%259A%258F%25E6%259C%25BA%25E6%259F%25A5%25E8%25AF%25A2%25E8%25BE%2593%25E5%2587%25BA%25E6%2595%25B0%25E6%258D%25AE%25E8%25AF%25AD%25E5%258F%25A5%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">mysql慢速(slow log)脚本分析</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F16%2Fmysql%25E4%25B8%25AD%25E8%25AE%25BE%25E7%25BD%25AE%25E8%2587%25AA%25E5%25A2%259E%25E5%25AD%2597%25E6%25AE%25B5%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F07%2F28%2Fmysql%25E9%259A%258F%25E6%259C%25BA%25E6%259F%25A5%25E8%25AF%25A2%25E8%25BE%2593%25E5%2587%25BA%25E6%2595%25B0%25E6%258D%25AE%25E8%25AF%25AD%25E5%258F%25A5%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">MySQL中设置自增字段</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F10%2F15%2F%25E4%25BD%25BF%25E7%2594%25A8sql_calc_found_rows%25E8%258E%25B7%25E5%258F%2596mysql%25E6%259F%25A5%25E8%25AF%25A2%25E8%25AE%25B0%25E5%25BD%2595%25E6%2580%25BB%25E6%2595%25B0%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F07%2F28%2Fmysql%25E9%259A%258F%25E6%259C%25BA%25E6%259F%25A5%25E8%25AF%25A2%25E8%25BE%2593%25E5%2587%25BA%25E6%2595%25B0%25E6%258D%25AE%25E8%25AF%25AD%25E5%258F%25A5%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">使用SQL_CALC_FOUND_ROWS获取mysql查询记录总数</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件" rel="nofollow">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.pkphp.com/2008/07/28/mysql%e9%9a%8f%e6%9c%ba%e6%9f%a5%e8%af%a2%e8%be%93%e5%87%ba%e6%95%b0%e6%8d%ae%e8%af%ad%e5%8f%a5/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>linux下mysql自动远程备份</title>
		<link>http://www.pkphp.com/2008/07/01/linux%e4%b8%8bmysql%e8%87%aa%e5%8a%a8%e8%bf%9c%e7%a8%8b%e5%a4%87%e4%bb%bd/</link>
		<comments>http://www.pkphp.com/2008/07/01/linux%e4%b8%8bmysql%e8%87%aa%e5%8a%a8%e8%bf%9c%e7%a8%8b%e5%a4%87%e4%bb%bd/#comments</comments>
		<pubDate>Tue, 01 Jul 2008 12:35:35 +0000</pubDate>
		<dc:creator>askie</dc:creator>
				<category><![CDATA[LAMP]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[备份]]></category>
		<category><![CDATA[自动]]></category>
		<category><![CDATA[远程]]></category>

		<guid isPermaLink="false">http://www.pkphp.com/?p=119</guid>
		<description><![CDATA[今天有朋友问我有没有最简单的mysql备份的方法，所以想到以前的mysql都是通过的手工备份或者是备份到服务器本地，如果该台服务器over的话，后果就很麻烦了（我是说万一，呵呵，没有那么幸灾乐祸），写了个自动备份的脚本，目的是备份后将备份文件以ftp或者发邮件的形式保存到远程服务器,这里，用邮件的方式发送备份脚本到指...<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F16%2Fmysql-optimization-script%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F07%2F01%2Flinux%25E4%25B8%258Bmysql%25E8%2587%25AA%25E5%258A%25A8%25E8%25BF%259C%25E7%25A8%258B%25E5%25A4%2587%25E4%25BB%25BD%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">mysql优化脚本！</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2009%2F02%2F05%2Flinux%25E4%25B8%258B%25E5%25A6%2582%25E4%25BD%2595%25E9%2587%258D%25E5%2590%25AF%25E5%258A%25A8%25E7%25BD%2591%25E7%25BB%259C%25E6%259C%258D%25E5%258A%25A1%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F07%2F01%2Flinux%25E4%25B8%258Bmysql%25E8%2587%25AA%25E5%258A%25A8%25E8%25BF%259C%25E7%25A8%258B%25E5%25A4%2587%25E4%25BB%25BD%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux下如何重启动网络服务</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F04%2F24%2Flinux%25E4%25B8%258B%25E6%2589%258B%25E5%258A%25A8%25E5%25AE%2589%25E8%25A3%2585pdo_mysql%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F07%2F01%2Flinux%25E4%25B8%258Bmysql%25E8%2587%25AA%25E5%258A%25A8%25E8%25BF%259C%25E7%25A8%258B%25E5%25A4%2587%25E4%25BB%25BD%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux下手动安装pdo_mysql</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F07%2F15%2Flinux%25E4%25B8%258Bsvn%25E5%2591%25BD%25E4%25BB%25A4%25E5%25A4%25A7%25E5%2585%25A8%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F07%2F01%2Flinux%25E4%25B8%258Bmysql%25E8%2587%25AA%25E5%258A%25A8%25E8%25BF%259C%25E7%25A8%258B%25E5%25A4%2587%25E4%25BB%25BD%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux下svn命令大全</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<blockquote><p>今天有朋友问我有没有最简单的mysql备份的方法，所以想到以前的mysql都是通过的手工备份或者是备份到服务器本地，如果该台服务器over的话，后果就很麻烦了（我是说万一，呵呵，没有那么幸灾乐祸<img src="http://www.icnote.com/images/emot/shy.gif" border="0" alt="shy" />），写了个自动备份的脚本，目的是备份后将备份文件以ftp或者发<span class="mykeyword">邮件</span>的形式保存到远程服务器,这里，用邮件的方式发送备份脚本到指定的<span class="mykeyword">Email</span>账户我使用的是mutt+msmpt+shell，mutt和shell 在 linux里面都是自带的，msmpt需要一下的包：<br />
<a href="ftp://ftp.wesmo.com/pub/redhat/to_be_archived/SRPMS/openssl-0.9.7-1.src.rpm" target="_blank" rel="nofollow">openssl-0.9.7-1.src.rpm</a><br />
<a href="ftp://ftp.uni-bayreuth.de/pub/linux/opensuse/distribution/SL-10.0-OSS/inst-source/suse/i586/msmtp-1.4.3-2.i586.rpm" target="_blank" rel="nofollow">msmtp-1.4.3-2.i586.rpm</a></p>
<p>一、ftp远程备份<br />
编写如下脚本<br />
#vi autoBakMysql.sh<br />
<a name="entrymore"></a></p>
<p>#!/bin/bash<br />
#Auto DB Backup shell<br />
#Powered by <span class="\">leo</span><img src="http://www.icnote.com/%5C%22http://www.icnote.com/images/logo.gif%5C%22" alt="\" /></p>
<p>DBName=mysql<br />
DBUser=root<br />
DBPasswd=<br />
BackupPath=/root/<br />
LogFile=/root/db.log<br />
DBPath=/var/lib/mysql/<br />
#BackupMethod=mysqldump<br />
#BackupMethod=mysqlhotcopy<br />
#BackupMethod=tar<br />
#Setting End</p>
<p>NewFile=&#8221;$BackupPath&#8221;db$(date +%y%m%d).tgz<br />
DumpFile=&#8221;$BackupPath&#8221;db$(date +%y%m%d)<br />
OldFile=&#8221;$BackupPath&#8221;db$(date +%y%m%d &#8211;date=&#8217;5 days ago&#8217;).tgz</p>
<p>echo &#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-&#8221; &gt;;&gt;; $LogFile<br />
echo $(date +&#8221;%y-%m-%d %H:%M:%S&#8221;) &gt;;&gt;; $LogFile<br />
echo &#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;&#8221; &gt;;&gt;; $LogFile<br />
#Delete Old File<br />
if [ -f $OldFile ]<br />
then<br />
rm -f $OldFile &gt;;&gt;; $LogFile 2&gt;;&amp;1<br />
echo &#8220;[$OldFile]Delete Old File Success!&#8221; &gt;;&gt;; $LogFile<br />
else<br />
echo &#8220;[$OldFile]No Old Backup File!&#8221; &gt;;&gt;; $LogFile<br />
fi</p>
<p>if [ -f $NewFile ]<br />
then<br />
echo &#8220;[$NewFile]The Backup File is exists,Can&#8217;t Backup!&#8221; &gt;;&gt;; $LogFile<br />
else<br />
case $BackupMethod in<br />
mysqldump)<br />
if [ -z $DBPasswd ]<br />
then<br />
mysqldump -u $DBUser &#8211;opt $DBName &gt;; $DumpFile<br />
else<br />
mysqldump -u $DBUser -p$DBPasswd &#8211;opt $DBName &gt;; $DumpFile<br />
fi<br />
tar czvf $NewFile $DumpFile &gt;;&gt;; $LogFile 2&gt;;&amp;1<br />
echo &#8220;[$NewFile]Backup Success!&#8221; &gt;;&gt;; $LogFile<br />
rm -rf $DumpFile<br />
;;<br />
mysqlhotcopy)<br />
rm -rf $DumpFile<br />
mkdir $DumpFile<br />
if [ -z $DBPasswd ]<br />
then<br />
mysqlhotcopy -u $DBUser $DBName $DumpFile &gt;;&gt;; $LogFile 2&gt;;&amp;1<br />
else<br />
mysqlhotcopy -u $DBUser -p $DBPasswd $DBName $DumpFile &gt;;&gt;;$LogFile 2&gt;;&amp;1<br />
fi<br />
tar czvf $NewFile $DumpFile &gt;;&gt;; $LogFile 2&gt;;&amp;1<br />
echo &#8220;[$NewFile]Backup Success!&#8221; &gt;;&gt;; $LogFile<br />
rm -rf $DumpFile<br />
;;<br />
*)<br />
/etc/init.d/mysqld stop &gt;;/dev/null 2&gt;;&amp;1<br />
tar czvf $NewFile $DBPath$DBName &gt;;&gt;; $LogFile 2&gt;;&amp;1<br />
/etc/init.d/mysqld start &gt;;/dev/null 2&gt;;&amp;1<br />
echo &#8220;[$NewFile]Backup Success!&#8221; &gt;;&gt;; $LogFile<br />
;;<br />
esac<br />
fi</p>
<p>echo &#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-&#8221; &gt;;&gt;; $LogFile</p>
<p>echo &#8220;start ftp backup file&#8221;</p>
<p>ftp -i -in &lt;&lt;!<br />
open 192.168.7.9 21<br />
user username password<br />
cd /<br />
mput $DumpFile<br />
bye<br />
echo &#8220;#################### send success! ##################&#8221; &gt;;&gt;; $LogFile</p></blockquote>
<h3 class="bsuite_related">Related items</h3>
<ul class="bsuite_related">
<li><a href='http://www.pkphp.com/2009/02/05/linux%e4%b8%8b%e5%a6%82%e4%bd%95%e9%87%8d%e5%90%af%e5%8a%a8%e7%bd%91%e7%bb%9c%e6%9c%8d%e5%8a%a1/'>linux下如何重启动网络服务</a></li>
<li><a href='http://www.pkphp.com/2008/09/02/linux-install-uninstall-software/'>linux下如何安装、卸载软件</a></li>
<li><a href='http://www.pkphp.com/2008/09/02/apache-config-directory-virtualhost/'>apache中虚拟目录和虚拟主机设置</a></li>
<li><a href='http://www.pkphp.com/2008/08/30/linux%e4%b8%8b%e7%9a%84%e8%84%9a%e6%9c%ac%e6%96%87%e4%bb%b6%e8%a6%81%e6%b3%a8%e6%84%8f%e6%8d%a2%e8%a1%8c%e7%ac%a6%e4%b8%8ewindows%e4%b8%8d%e5%90%8c%ef%bc%81/'>linux下的脚本文件要注意换行符与Windows不同！</a></li>
<li><a href='http://www.pkphp.com/2008/08/16/mysql-optimization-script/'>mysql优化脚本！</a></li>
</ul>
<a href="http://www.pkphp.com/2008/07/01/linux%e4%b8%8bmysql%e8%87%aa%e5%8a%a8%e8%bf%9c%e7%a8%8b%e5%a4%87%e4%bb%bd/" title="php　自动　备份" style="font-size: 13px;">php　自动　备份</a>(1)<a href="http://www.pkphp.com/2008/07/01/linux%e4%b8%8bmysql%e8%87%aa%e5%8a%a8%e8%bf%9c%e7%a8%8b%e5%a4%87%e4%bb%bd/" title="远程备份mysql" style="font-size: 13px;">远程备份mysql</a>(1)<a href="http://www.pkphp.com/2008/07/01/linux%e4%b8%8bmysql%e8%87%aa%e5%8a%a8%e8%bf%9c%e7%a8%8b%e5%a4%87%e4%bb%bd/" title="php mysql 备份" style="font-size: 13px;">php mysql 备份</a>(1)<a href="http://www.pkphp.com/2008/07/01/linux%e4%b8%8bmysql%e8%87%aa%e5%8a%a8%e8%bf%9c%e7%a8%8b%e5%a4%87%e4%bb%bd/" title="MYSQL＋远程备份" style="font-size: 13px;">MYSQL＋远程备份</a>(1)<a href="http://www.pkphp.com/2008/07/01/linux%e4%b8%8bmysql%e8%87%aa%e5%8a%a8%e8%bf%9c%e7%a8%8b%e5%a4%87%e4%bb%bd/" title="Զ" style="font-size: 13px;">Զ</a>(1)<a href="http://www.pkphp.com/2008/07/01/linux%e4%b8%8bmysql%e8%87%aa%e5%8a%a8%e8%bf%9c%e7%a8%8b%e5%a4%87%e4%bb%bd/" title="mysql远程备份" style="font-size: 13px;">mysql远程备份</a>(1)<a href="http://www.pkphp.com/2008/07/01/linux%e4%b8%8bmysql%e8%87%aa%e5%8a%a8%e8%bf%9c%e7%a8%8b%e5%a4%87%e4%bb%bd/" title="linux ftp 远程备份" style="font-size: 13px;">linux ftp 远程备份</a>(1)<a href="http://www.pkphp.com/2008/07/01/linux%e4%b8%8bmysql%e8%87%aa%e5%8a%a8%e8%bf%9c%e7%a8%8b%e5%a4%87%e4%bb%bd/" title="ubuntu自动备份到远程FTP脚本" style="font-size: 13px;">ubuntu自动备份到远程FTP脚本</a>(1)<a href="http://www.pkphp.com/2008/07/01/linux%e4%b8%8bmysql%e8%87%aa%e5%8a%a8%e8%bf%9c%e7%a8%8b%e5%a4%87%e4%bb%bd/" title="pks备份" style="font-size: 13px;">pks备份</a>(1)<a href="http://www.pkphp.com/2008/07/01/linux%e4%b8%8bmysql%e8%87%aa%e5%8a%a8%e8%bf%9c%e7%a8%8b%e5%a4%87%e4%bb%bd/" title="mysql 自动远程备份" style="font-size: 13px;">mysql 自动远程备份</a>(1)<a href="http://www.pkphp.com/2008/07/01/linux%e4%b8%8bmysql%e8%87%aa%e5%8a%a8%e8%bf%9c%e7%a8%8b%e5%a4%87%e4%bb%bd/" title="ubuntu php &gt;&amp;1 &amp;" style="font-size: 13px;">ubuntu php &gt;&amp;1 &amp;</a>(1)<a href="http://www.pkphp.com/2008/07/01/linux%e4%b8%8bmysql%e8%87%aa%e5%8a%a8%e8%bf%9c%e7%a8%8b%e5%a4%87%e4%bb%bd/" title="linux shell 远程备份" style="font-size: 13px;">linux shell 远程备份</a>(1)<a href="http://www.pkphp.com/2008/07/01/linux%e4%b8%8bmysql%e8%87%aa%e5%8a%a8%e8%bf%9c%e7%a8%8b%e5%a4%87%e4%bb%bd/" title="远程备份linux mysql mysqldump库文件" style="font-size: 13px;">远程备份linux mysql mysqldump库文件</a>(1)<a href="http://www.pkphp.com/2008/07/01/linux%e4%b8%8bmysql%e8%87%aa%e5%8a%a8%e8%bf%9c%e7%a8%8b%e5%a4%87%e4%bb%bd/" title="mysql dump 远程 备份" style="font-size: 13px;">mysql dump 远程 备份</a>(1)<a href="http://www.pkphp.com/2008/07/01/linux%e4%b8%8bmysql%e8%87%aa%e5%8a%a8%e8%bf%9c%e7%a8%8b%e5%a4%87%e4%bb%bd/" title="mysql 远程ftp 脚本" style="font-size: 13px;">mysql 远程ftp 脚本</a>(1)<br /><table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F16%2Fmysql-optimization-script%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F07%2F01%2Flinux%25E4%25B8%258Bmysql%25E8%2587%25AA%25E5%258A%25A8%25E8%25BF%259C%25E7%25A8%258B%25E5%25A4%2587%25E4%25BB%25BD%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">mysql优化脚本！</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2009%2F02%2F05%2Flinux%25E4%25B8%258B%25E5%25A6%2582%25E4%25BD%2595%25E9%2587%258D%25E5%2590%25AF%25E5%258A%25A8%25E7%25BD%2591%25E7%25BB%259C%25E6%259C%258D%25E5%258A%25A1%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F07%2F01%2Flinux%25E4%25B8%258Bmysql%25E8%2587%25AA%25E5%258A%25A8%25E8%25BF%259C%25E7%25A8%258B%25E5%25A4%2587%25E4%25BB%25BD%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux下如何重启动网络服务</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F04%2F24%2Flinux%25E4%25B8%258B%25E6%2589%258B%25E5%258A%25A8%25E5%25AE%2589%25E8%25A3%2585pdo_mysql%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F07%2F01%2Flinux%25E4%25B8%258Bmysql%25E8%2587%25AA%25E5%258A%25A8%25E8%25BF%259C%25E7%25A8%258B%25E5%25A4%2587%25E4%25BB%25BD%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux下手动安装pdo_mysql</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F07%2F15%2Flinux%25E4%25B8%258Bsvn%25E5%2591%25BD%25E4%25BB%25A4%25E5%25A4%25A7%25E5%2585%25A8%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F07%2F01%2Flinux%25E4%25B8%258Bmysql%25E8%2587%25AA%25E5%258A%25A8%25E8%25BF%259C%25E7%25A8%258B%25E5%25A4%2587%25E4%25BB%25BD%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux下svn命令大全</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件" rel="nofollow">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.pkphp.com/2008/07/01/linux%e4%b8%8bmysql%e8%87%aa%e5%8a%a8%e8%bf%9c%e7%a8%8b%e5%a4%87%e4%bb%bd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

