<?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>Full-house &#187; wordpress</title>
	<atom:link href="http://full-house.cn/index.php/index.php/wordpress/feed" rel="self" type="application/rss+xml" />
	<link>http://full-house.cn</link>
	<description>SELECT blog FROM TonyHu.full-house WHERE subject IN (Life,Web,Database)</description>
	<lastBuildDate>Wed, 25 Aug 2010 07:40:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Wordpress 数据库维护技巧</title>
		<link>http://full-house.cn/index.php/200912/wordpress-datebase-maintenace-skills.html</link>
		<comments>http://full-house.cn/index.php/200912/wordpress-datebase-maintenace-skills.html#comments</comments>
		<pubDate>Thu, 03 Dec 2009 02:39:23 +0000</pubDate>
		<dc:creator>Tony hu</dc:creator>
				<category><![CDATA[Mysql]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[skills]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://full-house.cn/?p=592</guid>
		<description><![CDATA[1、创建数据库备份
备份数据库是首先要做的事情，只需要通过以下方法就可以简单备份数据库：
登录phpMyAdmin后。选择你的WordPress数据库，然后点击“导出”按钮，选择一种压缩方式（可以使用gzip）并单击“执行”按钮，当浏览器提示是否下载的时候，点“是”，将数据库文件下载到本地。
2、批量删除文章修订
WordPress2.6以后的版本增加了一个Post revisions功能，虽然有点用，但文章修订增加了你数据库的大小，我们可以选择批量删除。登录phpMyAdmin后执行下面的SQL语句即可批量删除。
DELETE FROM wp_posts WHERE post_type = &#8220;revision&#8221;;
3、恢复你的WordPress数据库
当你的数据库因为某些原因（黑客或者升级错误）被损坏或者丢失了，如果你有备份的话，那可以恢复你的WordPress数据库。
登录phpMyAdmin，选择你的WordPress数据库，点“导入”按钮，点“浏览”按钮，然后从你的硬盘选择备份文件，点“执行”按钮就可以将数据库导入。
]]></description>
			<content:encoded><![CDATA[<p>1、创建数据库备份</p>
<p>备份数据库是首先要做的事情，只需要通过以下方法就可以简单备份数据库：</p>
<p>登录phpMyAdmin后。选择你的WordPress数据库，然后点击“导出”按钮，选择一种压缩方式（可以使用gzip）并单击“执行”按钮，当浏览器提示是否下载的时候，点“是”，将数据库文件下载到本地。</p>
<p>2、批量删除文章修订</p>
<p>WordPress2.6以后的版本增加了一个Post revisions功能，虽然有点用，但文章修订增加了你数据库的大小，我们可以选择批量删除。登录phpMyAdmin后执行下面的SQL语句即可批量删除。</p>
<p>DELETE FROM wp_posts WHERE post_type = &#8220;revision&#8221;;</p>
<p>3、恢复你的WordPress数据库</p>
<p>当你的数据库因为某些原因（黑客或者升级错误）被损坏或者丢失了，如果你有备份的话，那可以恢复你的WordPress数据库。</p>
<p>登录phpMyAdmin，选择你的WordPress数据库，点“导入”按钮，点“浏览”按钮，然后从你的硬盘选择备份文件，点“执行”按钮就可以将数据库导入。</p>
]]></content:encoded>
			<wfw:commentRss>http://full-house.cn/index.php/200912/wordpress-datebase-maintenace-skills.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>两个不同wordpress的mysql数据库合并到同一个数据库中</title>
		<link>http://full-house.cn/index.php/200912/combine-two-different-wordpress-mysql-databases.html</link>
		<comments>http://full-house.cn/index.php/200912/combine-two-different-wordpress-mysql-databases.html#comments</comments>
		<pubDate>Thu, 03 Dec 2009 01:55:32 +0000</pubDate>
		<dc:creator>Tony hu</dc:creator>
				<category><![CDATA[Myself]]></category>
		<category><![CDATA[Mysql]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[combine]]></category>
		<category><![CDATA[datebase]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://full-house.cn/?p=586</guid>
		<description><![CDATA[终于将我两个wordpress博客站点使用同一个Mysql数据库了。
一直以来我都是使用的是两个不同的数据库(Database)，因为使用的是虚拟主机，所以两个数据库是在不同的服务器上，就算是在同一台服务器上，也不能统一管理（如备份）。以前都是要单独备份的。其实我的两个博客站点的访问量也不大，如果两个网站的数据库放在一起管理那不是很方便吗？
两个网站的数据库为什么能够合并（使用同一个Database Name），其实Wordpress开发者们早就为我们准备好了。
两个数据库中的表主要以 $table_prefix 这个参考来控制【参见下面的代码】，即数据库的前缀，两个网站使用不同的前缀就可以了，这样考虑的话，只要数据库够大，可以放N个不同的wordpress数据库。

define('DB_NAME', 'DEMO_Database');
 
/** MySQL database username */
define('DB_USER', 'DEMO');
/** MySQL database password */
define('DB_PASSWORD', '123456');
/** MySQL hostname*/
define('DB_HOST', '192.168.1.1');
/** Database Charset to use in creating database tables. */
define('DB_CHARSET', 'utf8');
/** The Database Collate type. Don't change this if in doubt. */
define('DB_COLLATE', '');
/**#@+
* Authentication Unique Keys.
*
* Change these to different unique phrases!
* You can generate these using the [...]]]></description>
			<content:encoded><![CDATA[<p>终于将我两个wordpress博客站点使用同一个Mysql数据库了。</p>
<p>一直以来我都是使用的是两个不同的数据库(Database)，因为使用的是虚拟主机，所以两个数据库是在不同的服务器上，就算是在同一台服务器上，也不能统一管理（如备份）。以前都是要单独备份的。其实我的两个博客站点的访问量也不大，如果两个网站的数据库放在一起管理那不是很方便吗？</p>
<p>两个网站的数据库为什么能够合并（使用同一个Database Name），其实Wordpress开发者们早就为我们准备好了。</p>
<p>两个数据库中的表主要以 $table_prefix 这个参考来控制【参见下面的代码】，即数据库的前缀，两个网站使用不同的前缀就可以了，这样考虑的话，只要数据库够大，可以放N个不同的wordpress数据库。</p>
<p><span id="more-586"></span><br />
<code>define('DB_NAME', 'DEMO_Database');</code></p>
<p><code> </code></p>
<p><code>/** MySQL database username */<br />
define('DB_USER', 'DEMO');</code></p>
<p><code>/** MySQL database password */<br />
define('DB_PASSWORD', '123456');</p>
<p>/** MySQL hostname*/<br />
define('DB_HOST', '192.168.1.1');</p>
<p>/** Database Charset to use in creating database tables. */<br />
define('DB_CHARSET', 'utf8');</p>
<p>/** The Database Collate type. Don't change this if in doubt. */<br />
define('DB_COLLATE', '');</p>
<p>/**#@+<br />
* Authentication Unique Keys.<br />
*<br />
* Change these to different unique phrases!<br />
* You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/ WordPress.org secret-key service}<br />
*<br />
* @since 2.6.0<br />
*/<br />
define('AUTH_KEY', 'put your unique phrase here');<br />
define('SECURE_AUTH_KEY', 'put your unique phrase here');<br />
define('LOGGED_IN_KEY', 'put your unique phrase here');<br />
define('NONCE_KEY', 'put your unique phrase here');<br />
/**#@-*/</p>
<p></code></p>
<p><code>/**<br />
* WordPress Database Table prefix.<br />
*<br />
* You can have multiple installations in one database if you give each a unique<br />
* prefix. Only numbers, letters, and underscores please!<br />
*/<br />
<strong> $table_prefix  = 'f_h_wp_';</strong></code></p>
]]></content:encoded>
			<wfw:commentRss>http://full-house.cn/index.php/200912/combine-two-different-wordpress-mysql-databases.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
