<?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/"
	>

<channel>
	<title>I am Charley Cai</title>
	<atom:link href="http://charley.fuzgo.com/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://charley.fuzgo.com</link>
	<description>My personal website</description>
	<pubDate>Mon, 08 Jun 2009 18:44:43 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to backup and import a MySQL InnoDB database</title>
		<link>http://charley.fuzgo.com/?p=24</link>
		<comments>http://charley.fuzgo.com/?p=24#comments</comments>
		<pubDate>Mon, 08 Jun 2009 18:44:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[MySQL]]></category>

		<category><![CDATA[mysql innodb backup restore]]></category>

		<guid isPermaLink="false">http://charley.fuzgo.com/?p=24</guid>
		<description><![CDATA[Due to the way Innodb tables are structured, you cannot perform a hotback up of this database without using third party tools. Therefore you must take your database offline for a small period of time while you take the backup.
Backing up MySQL
MySQL backups are performed using the common mysqldump tool. This is a command line [...]]]></description>
			<content:encoded><![CDATA[<p>Due to the way Innodb tables are structured, you cannot perform a hotback up of this database without using third party tools. Therefore you must take your database offline for a small period of time while you take the backup.<br />
Backing up MySQL<br />
MySQL backups are performed using the common mysqldump tool. This is a command line utility that ships with MySQL and you use at as follows:</p>
<p>% mysqldump &#8211;user=user &#8211;password=pass &#8211;opt DBNAME > dumpfile.sql</p>
<p>You may also need to specify the &#8211;host= parameter to force the hostname you are connecting to. This depends largely on how you&#8217;ve setup your user security. This will produce a text file with a series of INSERT/DROP/CREATE SQL statements that will recreate the database.</p>
<p>The &#8211;opt flag is very important. This is shorthand to pass in many flags at once; &#8211;add-drop-table &#8211;add-locks &#8211;create-options &#8211;disable-keys &#8211;extended-insert &#8211;lock-tables &#8211;quick &#8211;set-charset. This ensures that your database is in a good state while the backup is performed, including restricting all write access while the backup is in operation. Any locks placed will be automatically removed when this utility finishes.</p>
<p>Restoring a backup<br />
Restoring a backup, or importing from an existing dump file can take a long time depending on the number of indexes and primary keys you have on each table. You can speed this process up dramatically by modifying your original dump file by surrounding it with the following:</p>
<p>SET AUTOCOMMIT = 0;<br />
SET FOREIGN_KEY_CHECKS=0;</p>
<p>.. your dump file ..</p>
<p>SET FOREIGN_KEY_CHECKS = 1;<br />
COMMIT;<br />
SET AUTOCOMMIT = 1;</p>
<p>This turns off all the checks and auto-commits. This is a safe operation to do if you are fully restoring a database since the previous dump has already been validated for legal keys. If however you are importing, or adding to an existing database, then this step is not advisable.</p>
<p>You can then easily import the SQL file into MySQL using:</p>
<p>% mysql &#8211;user=user &#8211;password=pass DBNAME < dumpfile.sql</p>
<p>or using</p>
<p>mysql> SET FOREIGN_KEY_CHECKS = 0;<br />
mysql> SOURCE dump_file_name<br />
mysql> SET FOREIGN_KEY_CHECKS = 1;<br />
mysql> COMMIT;</p>
<p>Backing up without taking MySQL offline<br />
You cannot perform this with Innodb with the tools supplied with MySQL. However you can get around this limitation by running two MySQL database instances. You setup another MySQL database running on another machine, that is a replication server. Replication features come part of the standard MySQL installation. This replication server can be taken offline for as long as you wish while the backup is performed from the replicated server. Once online, it will resync itself up with any operations that were done while it was offline.</p>
]]></content:encoded>
			<wfw:commentRss>http://charley.fuzgo.com/?feed=rss2&amp;p=24</wfw:commentRss>
		</item>
		<item>
		<title>Jinx Episode 2: Miracle in the 34th Dimension</title>
		<link>http://charley.fuzgo.com/?p=21</link>
		<comments>http://charley.fuzgo.com/?p=21#comments</comments>
		<pubDate>Sun, 01 Feb 2009 05:09:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Games]]></category>

		<guid isPermaLink="false">http://charley.fuzgo.com/?p=21</guid>
		<description><![CDATA[
Description:
Help Jinx and Dr. Frantic escape from an alternate universe ruled by Evil Santa and his toy-breaking trolls in this exciting sequel to the original game.
Genre: Adventure       Download: 233Kb
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.ytv.com/gamepad/play/games/jinx/episode2/play.asp#top"><img src="http://charley.fuzgo.com/wp-content/uploads/2009/01/th-jinx2.gif" alt="th-jinx2" title="th-jinx2" width="33" height="33" class="alignnone size-full wp-image-22" /></a></p>
<p>Description:<br />
Help Jinx and Dr. Frantic escape from an alternate universe ruled by Evil Santa and his toy-breaking trolls in this exciting sequel to the original game.</p>
<p>Genre: Adventure       Download: 233Kb</p>
]]></content:encoded>
			<wfw:commentRss>http://charley.fuzgo.com/?feed=rss2&amp;p=21</wfw:commentRss>
		</item>
		<item>
		<title>Jinx Episode 1: A Dark and Stormy Night</title>
		<link>http://charley.fuzgo.com/?p=16</link>
		<comments>http://charley.fuzgo.com/?p=16#comments</comments>
		<pubDate>Sun, 01 Feb 2009 05:04:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Games]]></category>

		<guid isPermaLink="false">http://charley.fuzgo.com/?p=16</guid>
		<description><![CDATA[Jinx Episode 1: A Dark and Stormy Night

Description:
Trick-or-treating takes a turn for the terrifying when our game&#8217;s hero Jinx investigates the spooky house on the hill, and discovers who&#8217;s been living there all these years
Genre: Adventure       Download: 101Kb
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.ytv.com/gamepad/play/games/jinx/episode1/play.asp#top" target="_blank">Jinx Episode 1: A Dark and Stormy Night</a></p>
<p><a href="http://www.ytv.com/gamepad/play/games/jinx/episode1/play.asp#top"><img src="http://charley.fuzgo.com/wp-content/uploads/2009/01/th-jinx.gif" alt="th-jinx" title="th-jinx" width="33" height="33" class="alignnone size-full wp-image-19" /></a></p>
<p>Description:<br />
Trick-or-treating takes a turn for the terrifying when our game&#8217;s hero Jinx investigates the spooky house on the hill, and discovers who&#8217;s been living there all these years</p>
<p>Genre: Adventure       Download: 101Kb</p>
]]></content:encoded>
			<wfw:commentRss>http://charley.fuzgo.com/?feed=rss2&amp;p=16</wfw:commentRss>
		</item>
		<item>
		<title>My Games</title>
		<link>http://charley.fuzgo.com/?p=5</link>
		<comments>http://charley.fuzgo.com/?p=5#comments</comments>
		<pubDate>Sun, 01 Feb 2009 04:25:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Games]]></category>

		<guid isPermaLink="false">http://charley.fuzgo.com/?p=5</guid>
		<description><![CDATA[Club Penguin:
http://www.clubpenguin.com/

]]></description>
			<content:encoded><![CDATA[<p>Club Penguin:</p>
<p><a href="http://www.clubpenguin.com/" target="_blank">http://www.clubpenguin.com/</a><br />
<a href="http://www.clubpenguin.com"><img src="http://charley.fuzgo.com/wp-content/uploads/2009/01/clubpenguin.png" alt="clubpenguin" title="clubpenguin" width="403" height="230" class="alignnone size-full wp-image-14" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://charley.fuzgo.com/?feed=rss2&amp;p=5</wfw:commentRss>
		</item>
		<item>
		<title>Hello world!</title>
		<link>http://charley.fuzgo.com/?p=1</link>
		<comments>http://charley.fuzgo.com/?p=1#comments</comments>
		<pubDate>Sun, 01 Feb 2009 04:14:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://charley.fuzgo.com/?p=1</guid>
		<description><![CDATA[Welcome to My Personal Website.
This is my first post.
Best wishes to everyone.
]]></description>
			<content:encoded><![CDATA[<p>Welcome to My Personal Website.</p>
<p>This is my first post.</p>
<p>Best wishes to everyone.</p>
]]></content:encoded>
			<wfw:commentRss>http://charley.fuzgo.com/?feed=rss2&amp;p=1</wfw:commentRss>
		</item>
	</channel>
</rss>
