<?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>阿斯猫的兵工厂 &#187; 数据库导入</title>
	<atom:link href="http://www.arscat.com/tag/%e6%95%b0%e6%8d%ae%e5%ba%93%e5%af%bc%e5%85%a5/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.arscat.com</link>
	<description>Arsenal,  Arsene Wenger, Arshavin and Arscat.</description>
	<lastBuildDate>Mon, 06 Feb 2012 15:59:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>WordPress 2.7.1搬家记及小经验</title>
		<link>http://www.arscat.com/2009/07/02/moving-story-of-wordpress-271-with-some-gifts/</link>
		<comments>http://www.arscat.com/2009/07/02/moving-story-of-wordpress-271-with-some-gifts/#comments</comments>
		<pubDate>Wed, 01 Jul 2009 16:12:37 +0000</pubDate>
		<dc:creator>木鱼猫</dc:creator>
				<category><![CDATA[不懂技术]]></category>
		<category><![CDATA[cPanel]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[分享]]></category>
		<category><![CDATA[搬家]]></category>
		<category><![CDATA[数据库导入]]></category>
		<category><![CDATA[经验]]></category>

		<guid isPermaLink="false">http://www.onlyalizee.cn/2009/07/02/wordpress-271%e6%90%ac%e5%ae%b6%e8%ae%b0%e5%8f%8a%e5%b0%8f%e7%bb%8f%e9%aa%8c/</guid>
		<description><![CDATA[首先感谢雪深同学在我被上月博客流量超额搞得晕乎乎的时候极其友情的提供给我了一个免费主机，这个主机是FreeHost4Life 赞助的，他们还有个名字叫“美国主机侦探”，目前正在提供免费的1G空间、20G流量独立IP的PHP主机，有兴趣的同学可以去看看，他们那里还有很多域名购买优惠哦。 话说今天给WordPress搬家，遇到了几个问题，在雪深同学的热心指导下一一解决，问题虽简单但自己手动解决也算是挺有成就感，也算是积攒了小小经验。 下面就把这些经验分享出来： WordPress如何导入数据库 首先登陆旧主机后台cPanel并在phpMyAdmin中导出数据库并得到.sql文件； 接下来登陆strong新主机/strong后台cPanel，此时需要首先用MySQL管理器新建一个数据库，同时新建用户并与刚建好的数据库绑定（需要分配所有权限给该用户）； 然后使用strong新主机/strong中的phpMyAdmin将保存好的.sql文件导入新建好的数据库中，最后别忘记将WordPress的配置文件wp-config.php根据新数据库的数据库名和用户账户信息等更新下。 #问题：数据库导入时出现#1044错误 如果数据库导入时失败并遇到下列错误信息 MySQL 返回： #1044 &#8211; Access denied for user … 这是因为phpMyAdmin是没有权限新建数据库的(事实上数据库刚才我们已经建好了),所以会出现这样的&#8221;该用户无权限新建数据库&#8221;错误提示。 解决方法：在保存好的.sql数据库文件中查找如下代码 CREAT DATABASE &#8230;. 如果有请将该部分代码删除即可。 WordPress后台登录乱码问题 搬家完成后登录后台时遇到了如下乱码无法登录 Warning: Cannot modify header information &#8211; headers already sent by (output started at /home/html/blog/wp-config.php:47) in /home/html/blog/wp-includes/pluggable.php on line 689 在Google一番后发现问题并不能使用WordPress非官方中文站讲的方法解决，最后还是参考这里才解决了这个问题。 解决方法：使用记事本打开你的 wp-config.php 文件，删除掉所有在php语句前后的空行和空格。保存时切记要另存并选择“ANSI 或者 gb2312 编码格式”，如果使用emeditor等编辑器的话保存成“UTF8 no BOM”的编码格式。 [...]<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.arscat.com%2F2010%2F06%2F20%2Fguidelines-for-wordpress-transfer%2F&from=http%3A%2F%2Fwww.arscat.com%2F2009%2F07%2F02%2Fmoving-story-of-wordpress-271-with-some-gifts%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.arscat.com%2F2009%2F06%2F10%2F4-extends-improve-the-performance-of-wordpress%2F&from=http%3A%2F%2Fwww.arscat.com%2F2009%2F07%2F02%2Fmoving-story-of-wordpress-271-with-some-gifts%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">4个插件帮你提高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.arscat.com%2F2009%2F07%2F09%2Fexchange-domain-for-ur-wordpress-in-4-steps%2F&from=http%3A%2F%2Fwww.arscat.com%2F2009%2F07%2F02%2Fmoving-story-of-wordpress-271-with-some-gifts%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.arscat.com%2F2010%2F09%2F21%2Ffix-wordpress-500-internal-server-error%2F&from=http%3A%2F%2Fwww.arscat.com%2F2009%2F07%2F02%2Fmoving-story-of-wordpress-271-with-some-gifts%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">解决WordPress 500错误</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.arscat.com%2F2008%2F03%2F19%2Fhow-to-use-wordpress-default-smilies%2F&from=http%3A%2F%2Fwww.arscat.com%2F2009%2F07%2F02%2Fmoving-story-of-wordpress-271-with-some-gifts%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">WordPress自带表情对应字符详解</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><img class="alignright" style="display: inline; margin-left: 0px; margin-right: 0px" src="http://arscat.com/pika/readimg.php?src=http%3A%2F%2Flh4.gouride.com%2F_xolacdOPHS8%2FSi9Bx6QhexI%2FAAAAAAAABIM%2F35GT1ssvqCw%2Fs800%2Fwordpress.png" alt="WordPress搬家记" width="241" height="84" align="right" />首先感谢<a href="http://xueshen.net/" target="_blank">雪深</a>同学在我被上月博客流量超额搞得晕乎乎的时候极其友情的提供给我了一个免费主机，这个主机是<a href="http://www.freehost4life.com/" target="_blank">FreeHost4Life </a>赞助的，他们还有个名字叫“美国主机侦探”，目前正在提供免费的1G空间、20G流量独立IP的PHP主机，有兴趣的同学可以去看看，他们那里还有很多域名购买优惠哦。</p>
<p>话说今天给WordPress搬家，遇到了几个问题，在雪深同学的热心指导下一一解决，问题虽简单但自己手动解决也算是挺有成就感，也算是积攒了小小经验。</p>
<p>下面就把这些经验分享出来：</p>
<ol>
<li><strong>WordPress如何导入数据库</strong>
<p>首先登陆<strong>旧主机</strong>后台cPanel并在phpMyAdmin中导出数据库并得到.sql文件；<br />
接下来登陆strong新主机/strong后台cPanel，此时需要首先用MySQL管理器新建一个数据库，同时新建用户并与刚建好的数据库绑定（需要分配所有权限给该用户）；<br />
然后使用strong新主机/strong中的phpMyAdmin将保存好的.sql文件导入新建好的数据库中，最后别忘记将WordPress的配置文件wp-config.php根据新数据库的数据库名和用户账户信息等更新下。</p>
<p><strong>#问题：</strong>数据库导入时出现#1044错误<br />
如果数据库导入时失败并遇到下列错误信息</p>
<blockquote><p>MySQL 返回：<br />
#1044 &#8211; Access denied for user …</p></blockquote>
<p>这是因为phpMyAdmin是没有权限新建数据库的(事实上数据库刚才我们已经建好了),所以会出现这样的&#8221;该用户无权限新建数据库&#8221;错误提示。</p>
<p><strong>解决方法：</strong>在保存好的.sql数据库文件中查找如下代码</p>
<blockquote><p>CREAT DATABASE &#8230;.</p></blockquote>
<p><strong> </strong>如果有请将该部分代码删除即可。</li>
<li><strong>WordPress后台登录乱码问题 </strong>
<p>搬家完成后登录后台时遇到了如下乱码无法登录</p>
<blockquote><p>Warning: Cannot modify header information &#8211; headers already sent by (output started at /home/html/blog/wp-config.php:47) in /home/html/blog/wp-includes/pluggable.php on line 689</p></blockquote>
<p>在Google一番后发现问题并不能使用<a href="http://wpchina.org/wordpress-error-cannot-modify-header-information-146/" target="_blank">WordPress非官方中文站</a>讲的方法解决，最后还是参考<a href="http://www.kuqin.com/zhanz/20080725/12293.html" target="_blank">这里</a>才解决了这个问题。</p>
<p><strong>解决方法：</strong>使用记事本打开你的 wp-config.php 文件，删除掉所有在php语句前后的空行和空格。保存时切记要另存并选择“ANSI 或者 gb2312 编码格式”，如果使用emeditor等编辑器的话保存成“UTF8 no BOM”的编码格式。<strong></strong></p>
<p><strong></strong>最后的<strong>另存为</strong>是关键<strong>！</strong></p>
<p><strong></strong></li>
<li><strong>搬家后永久链接失效的问题</strong>
<p>搬家后发现以前设置好的“域名/年/月/日/日志名”格式的永久链接失效了，经过雪深的解释才明白在新主机的.htaccess文件中还未生成这个规则所以永久链接当然无法访问。<strong></p>
<p>解决方法：</strong>在后台重新保存一下永久链接选项。</li>
</ol>
<p>所有问题解决完后发现世界还是很美好的，因为终于不用担心流量超额的事情了（听起来很像某种妇女用品广告词啊，囧…)</p>
<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.arscat.com%2F2010%2F06%2F20%2Fguidelines-for-wordpress-transfer%2F&from=http%3A%2F%2Fwww.arscat.com%2F2009%2F07%2F02%2Fmoving-story-of-wordpress-271-with-some-gifts%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.arscat.com%2F2009%2F06%2F10%2F4-extends-improve-the-performance-of-wordpress%2F&from=http%3A%2F%2Fwww.arscat.com%2F2009%2F07%2F02%2Fmoving-story-of-wordpress-271-with-some-gifts%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">4个插件帮你提高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.arscat.com%2F2009%2F07%2F09%2Fexchange-domain-for-ur-wordpress-in-4-steps%2F&from=http%3A%2F%2Fwww.arscat.com%2F2009%2F07%2F02%2Fmoving-story-of-wordpress-271-with-some-gifts%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.arscat.com%2F2010%2F09%2F21%2Ffix-wordpress-500-internal-server-error%2F&from=http%3A%2F%2Fwww.arscat.com%2F2009%2F07%2F02%2Fmoving-story-of-wordpress-271-with-some-gifts%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">解决WordPress 500错误</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.arscat.com%2F2008%2F03%2F19%2Fhow-to-use-wordpress-default-smilies%2F&from=http%3A%2F%2Fwww.arscat.com%2F2009%2F07%2F02%2Fmoving-story-of-wordpress-271-with-some-gifts%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">WordPress自带表情对应字符详解</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>]]></content:encoded>
			<wfw:commentRss>http://www.arscat.com/2009/07/02/moving-story-of-wordpress-271-with-some-gifts/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
	</channel>
</rss>

