<?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>WhirCat &#187; MySQL</title>
	<atom:link href="http://whircat.centosprime.com/tags/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://whircat.centosprime.com</link>
	<description>puttin' on my work hat</description>
	<lastBuildDate>Tue, 17 Jan 2012 11:02:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>mysqlnd_ms &#8211; Replication and Load Balancing</title>
		<link>http://whircat.centosprime.com/mysqlnd_ms-replication-and-load-balancing/</link>
		<comments>http://whircat.centosprime.com/mysqlnd_ms-replication-and-load-balancing/#comments</comments>
		<pubDate>Thu, 12 Jan 2012 13:07:06 +0000</pubDate>
		<dc:creator>face</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[DB performance]]></category>

		<guid isPermaLink="false">http://whircat.centosprime.com/?p=797</guid>
		<description><![CDATA[The mysqlnd replication and load balancing plugin (mysqlnd_ms) adds easy to use MySQL replication support to all PHP MySQL extensions that use mysqlnd. via PHP: Introduction &#8211; Manual.]]></description>
			<content:encoded><![CDATA[<blockquote><p>The mysqlnd replication and load balancing plugin (mysqlnd_ms) adds easy to use MySQL replication support to all PHP MySQL extensions that use mysqlnd.</p></blockquote>
<p>via <a href="http://us.php.net/manual/en/intro.mysqlnd-ms.php">PHP: Introduction &#8211; Manual</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://whircat.centosprime.com/mysqlnd_ms-replication-and-load-balancing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A quicker drop table within MySQL</title>
		<link>http://whircat.centosprime.com/a-quicker-drop-table-within-mysql/</link>
		<comments>http://whircat.centosprime.com/a-quicker-drop-table-within-mysql/#comments</comments>
		<pubDate>Wed, 27 Apr 2011 21:40:59 +0000</pubDate>
		<dc:creator>face</dc:creator>
				<category><![CDATA[Practice]]></category>
		<category><![CDATA[data warehouse]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[performance]]></category>

		<guid isPermaLink="false">http://whircat.centosprime.com/?p=763</guid>
		<description><![CDATA[Whilst a truncate table operation is underway a lock mutex around the table is created to ensure data consistency; if using innodb file per table the physical .ibd file must be removed which is a painfully slow operation under ext3. via A quicker drop table within MySQL:]]></description>
			<content:encoded><![CDATA[<p>
<blockquote>Whilst a truncate table operation is underway a lock mutex around the table is created to ensure data consistency; if using innodb file per table the physical .ibd file must be removed which is a painfully slow operation under ext3.
</p></blockquote>
<p>via <a href="http://www.mysqldbahelp.com/2011/04/quicker-drop-table-within-mysql.html">A quicker drop table within MySQL</a>:</p>
]]></content:encoded>
			<wfw:commentRss>http://whircat.centosprime.com/a-quicker-drop-table-within-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Things to chase after</title>
		<link>http://whircat.centosprime.com/things-to-chase-after/</link>
		<comments>http://whircat.centosprime.com/things-to-chase-after/#comments</comments>
		<pubDate>Sat, 02 Apr 2011 14:02:08 +0000</pubDate>
		<dc:creator>face</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[cookbook]]></category>
		<category><![CDATA[Practice]]></category>

		<guid isPermaLink="false">http://whircat.centosprime.com/?p=751</guid>
		<description><![CDATA[MySQL specific? select make_set(255,&#8217;bit0&#8242;,&#8217;bit1&#8242;,&#8217;bit2&#8242;,&#8217;bit3&#8242;,&#8217;bit4&#8242;,&#8217;bit5&#8242;,&#8217;bit6&#8242;,&#8217;bit7&#8242;); select (1,2,3)=(1,2,3);]]></description>
			<content:encoded><![CDATA[<p>MySQL specific?</p>
<p>select make_set(255,&#8217;bit0&#8242;,&#8217;bit1&#8242;,&#8217;bit2&#8242;,&#8217;bit3&#8242;,&#8217;bit4&#8242;,&#8217;bit5&#8242;,&#8217;bit6&#8242;,&#8217;bit7&#8242;);</p>
<p>select (1,2,3)=(1,2,3);</p>
]]></content:encoded>
			<wfw:commentRss>http://whircat.centosprime.com/things-to-chase-after/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL: selecting top N records per group</title>
		<link>http://whircat.centosprime.com/sql-selecting-top-n-records-per-group/</link>
		<comments>http://whircat.centosprime.com/sql-selecting-top-n-records-per-group/#comments</comments>
		<pubDate>Thu, 06 Jan 2011 14:52:48 +0000</pubDate>
		<dc:creator>face</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[cookbook]]></category>

		<guid isPermaLink="false">http://whircat.centosprime.com/?p=734</guid>
		<description><![CDATA[Based on a similar concept, combined with string walking, I now present a query which selects top-n records for each group, ordered by some condition. It will require no subqueries. It executes faster than its more conventional alternatives. via SQL: selecting top N records per group &#124; code.openark.org.]]></description>
			<content:encoded><![CDATA[<blockquote><p>Based on a similar concept, combined with string walking, I now present a query which selects top-n records for each group, ordered by some condition. It will require no subqueries. It executes faster than its more conventional alternatives.</p></blockquote>
<p>via <a href="http://code.openark.org/blog/mysql/sql-selecting-top-n-records-per-group">SQL: selecting top N records per group | code.openark.org</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://whircat.centosprime.com/sql-selecting-top-n-records-per-group/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL FULL OUTER JOIN</title>
		<link>http://whircat.centosprime.com/mysql-full-outer-join/</link>
		<comments>http://whircat.centosprime.com/mysql-full-outer-join/#comments</comments>
		<pubDate>Tue, 07 Dec 2010 14:20:12 +0000</pubDate>
		<dc:creator>face</dc:creator>
				<category><![CDATA[DBA]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Practice]]></category>

		<guid isPermaLink="false">http://whircat.centosprime.com/?p=726</guid>
		<description><![CDATA[But the first two joins—the inner join, and the left exclusion join—are logically equivalent to a left outer join, so we can write: SELECT * FROM a LEFT JOIN b ON a.id=b.id UNION ALL SELECT * FROM a RIGHT JOIN b ON a.id=b.id WHERE a.id IS NULL; +------+------+------+------+ &#124; id   &#124; name &#124; id   &#124; name &#124; +------+------+------+------+ &#124;    1 &#124; a    &#124; NULL &#124; NULL &#124; &#124;    2 &#124; b    &#124;    2 &#124; b    &#124; &#124;    1 &#124; a    &#124; NULL &#124; NULL &#124; &#124; NULL &#124; NULL &#124;    3 &#124; c    &#124; +------+------+------+------+ Why doesn&#8217;t MySQL implement FULL OUTER JOIN syntax for this? We don&#8217;t know. via Common Queries Tree.]]></description>
			<content:encoded><![CDATA[<p>But the first two joins—the inner join, and the left exclusion join—are logically equivalent to a left outer join, so we can write:</p>
<p><code><br />
SELECT * FROM a LEFT JOIN b ON a.id=b.id<br />
UNION ALL<br />
SELECT * FROM a RIGHT JOIN b ON a.id=b.id WHERE a.id IS NULL;</p>
<p>+------+------+------+------+<br />
| id   | name | id   | name |<br />
+------+------+------+------+<br />
|    1 | a    | NULL | NULL |<br />
|    2 | b    |    2 | b    |<br />
|    1 | a    | NULL | NULL |<br />
| NULL | NULL |    3 | c    |<br />
+------+------+------+------+<br />
</code><br />
Why doesn&#8217;t MySQL implement FULL OUTER JOIN syntax for this? We don&#8217;t know.</p>
<p>via <a href="http://www.artfulsoftware.com/infotree/queries.php?&amp;bw=911#690">Common Queries Tree</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://whircat.centosprime.com/mysql-full-outer-join/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PURGE MASTER LOGS</title>
		<link>http://whircat.centosprime.com/purge-master-logs/</link>
		<comments>http://whircat.centosprime.com/purge-master-logs/#comments</comments>
		<pubDate>Sun, 28 Sep 2008 18:46:49 +0000</pubDate>
		<dc:creator>face</dc:creator>
				<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://face.centosprime.com/rdb-w/?p=150</guid>
		<description><![CDATA[PURGE MASTER LOGS TO &#8216;mydb-bin.0023&#8242;; Then the binlog before &#8216;mydb-bin.0023&#8242; will be deleted. You may also do this: PURGE MASTER LOGS BEFORE &#8217;2008-06-13 08:00:00&#8242;;]]></description>
			<content:encoded><![CDATA[<p>PURGE MASTER LOGS TO &#8216;mydb-bin.0023&#8242;;</p>
<p>Then the binlog before &#8216;mydb-bin.0023&#8242; will be deleted.</p>
<p>You may also do this:</p>
<p>PURGE MASTER LOGS BEFORE &#8217;2008-06-13 08:00:00&#8242;;</p>
]]></content:encoded>
			<wfw:commentRss>http://whircat.centosprime.com/purge-master-logs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

