<?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>Gary Pendergast &#187; MySQL</title>
	<atom:link href="http://pento.net/tag/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://pento.net</link>
	<description>I&#039;m on the Internet</description>
	<lastBuildDate>Wed, 08 Sep 2010 07:04:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
<cloud domain='pento.net' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
		<item>
		<title>Leaving MySQL (Not Really)</title>
		<link>http://pento.net/2009/06/05/leaving-mysql-not-really/</link>
		<comments>http://pento.net/2009/06/05/leaving-mysql-not-really/#comments</comments>
		<pubDate>Fri, 05 Jun 2009 21:50:18 +0000</pubDate>
		<dc:creator>Gary Pendergast</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Travel]]></category>
		<guid isPermaLink="false">http://pento.net/?p=248</guid>
		<description><![CDATA[I&#8217;ve been a bit slack about writing my MySQL thoughts of late. This would be caused by the fact that, as I write this, I&#8217;m now one week into a 12 month leave of absence from MySQL. Having given it much careful consideration, I&#8217;ve decided that the wisest way to survive the current economic problems [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been a bit slack about writing my MySQL thoughts of late. This would be caused by the fact that, as I write this, I&#8217;m now one week into a 12 month leave of absence from MySQL.</p>
<p>Having given it much careful consideration, I&#8217;ve decided that the wisest way to survive the current economic problems is by blowing my savings on a year long holiday in Italy. Wait, did I say holiday? Not really. I&#8217;m still a Sun employee, and I&#8217;m still going to be active in the MySQL community. My dear support customers just won&#8217;t be seeing me around for a while. <img src='http://pento.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I&#8217;m looking forward to having time to write more extensively about some of the cool things we&#8217;re doing, and what&#8217;s going on in the community at large. If there&#8217;s anything you&#8217;d like to hear about (either expanding on <a href="http://pento.net/category/mysql/">my previous posts</a>, or a completely new topic), please let me know.</p>
<p>Another thing I&#8217;d like to do, if there are any interested parties, is to see how companies are using MySQL in their part of the world. So, if you don&#8217;t mind showing off what you&#8217;re doing and having me write a little bit about it, feel free to drop me a line. All of my current contact details can be found on <a href="http://pento.net/contact/">my contact page</a>. I&#8217;m going to be primarily based in Milan, but I&#8217;ll be looking to travel around the rest of Europe at some point, so I&#8217;d be more than happy to stop by and see you if the opportunity arises.</p>
]]></content:encoded>
			<wfw:commentRss>http://pento.net/2009/06/05/leaving-mysql-not-really/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>MySQL and Geospatial Data</title>
		<link>http://pento.net/2009/05/18/mysql-and-geospatial-data/</link>
		<comments>http://pento.net/2009/05/18/mysql-and-geospatial-data/#comments</comments>
		<pubDate>Mon, 18 May 2009 01:08:12 +0000</pubDate>
		<dc:creator>Gary Pendergast</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[GIS]]></category>
		<guid isPermaLink="false">http://pento.net/?p=242</guid>
		<description><![CDATA[MySQL has had basic support for Geospatial Data since 4.1, but has lacked some of the features of the OpenGIS specifications since then. The good news is, this is rapidly changing. Our own Holyfoot has been hammering away at WorkLog #1327, to provide precise functions for our GIS support. Even better, it&#8217;s fast. How fast? [...]]]></description>
			<content:encoded><![CDATA[<p>MySQL has had basic support for Geospatial Data since 4.1, but has lacked some of the features of the <a href="http://www.opengeospatial.org/">OpenGIS</a> specifications since then. The good news is, this is rapidly changing. Our own Holyfoot has been hammering away at <a href="http://forge.mysql.com/worklog/task.php?id=1326">WorkLog #1327</a>, to provide precise functions for our GIS support.</p>
<p>Even better, it&#8217;s fast. How fast? Well, the good people at Oki Labs, apart from having implemented <a href="http://okilab.jp/blog/2008/07/distance_sphere_distance_spher.html">several new GIS functions</a> for MySQL, have done some benchmarking, and it&#8217;s looking good. If you&#8217;ll excuse the cliched comparison to Postgres, here are the response times (seconds) of MySQL GIS vs. PostGIS in Oki&#8217;s test:</p>
<table>
<tbody>
<tr>
<th>Connections</th>
<th> PostGIS</th>
<th> MySQL</th>
</tr>
<tr>
<td>1</td>
<td>1.817</td>
<td>0.220</td>
</tr>
<tr>
<td>100</td>
<td>10.517</td>
<td>0.557</td>
</tr>
</tbody>
</table>
<p>Source: <a href="http://www.osgeo.jp/wordpress/wp-content/uploads/2008/11/foss4g2008_okumura.pdf">http://www.osgeo.jp/wordpress/wp-content/uploads/2008/11/foss4g2008_okumura.pdf</a></p>
<p>If you&#8217;re interested in checking it out, the source tree (regularly merged with MySQL 5.1) is available <a href="https://code.launchpad.net/~mysql/mysql-server/mysql-5.1-wl1326">here</a>. Have a look at Giuseppe&#8217;s guide to <a href="http://datacharmer.blogspot.com/2008/06/from-bazaar-to-sandbox-in-5-moves.html">running a Bazaar export</a> in <a href="https://launchpad.net/mysql-sandbox">MySQL Sandbox</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://pento.net/2009/05/18/mysql-and-geospatial-data/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Open Database Alliance = Awesome</title>
		<link>http://pento.net/2009/05/14/open-database-alliance-awesome/</link>
		<comments>http://pento.net/2009/05/14/open-database-alliance-awesome/#comments</comments>
		<pubDate>Thu, 14 May 2009 00:13:28 +0000</pubDate>
		<dc:creator>Gary Pendergast</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[ODA]]></category>
		<guid isPermaLink="false">http://pento.net/?p=236</guid>
		<description><![CDATA[The big news coming from the MySQL Community today is that Monty Widenius and Percona have founded the Open Database Alliance, a group focused on &#8221;unifing all MySQL-related development and services, providing a solution to the fragmentation and uncertainty facing the communities, businesses and technical experts involved with MySQL&#8221;. I, for one, am 100% behind this. [...]]]></description>
			<content:encoded><![CDATA[<p>The big news coming from the MySQL Community today is that Monty Widenius and Percona have founded the <a href="http://opendatabasealliance.com/">Open Database Alliance</a>, a group focused on &#8221;unifing all MySQL-related development and services, providing a solution to the fragmentation and uncertainty facing the communities, businesses and technical experts involved with MySQL&#8221;.</p>
<p>I, for one, am 100% behind this. I&#8217;ve always been a big fan of community foundations being a focus point for development efforts, they work well to bring everyone together, and to provide a sensible foundation to help avoid much of the uncertainty that seems to spring up around MySQL. I certainly hope that the ODA is able to do the same.</p>
<p>Though I do have one question, how does the ODA plan on handling competing members? If you have two companies offering the same service in the same market, which one will the ODA recommend? Monty specifically says that &#8220;all companies that are joining the Alliance should bring something to the table&#8221;, but it&#8217;s a bit difficult to bring something new when there are already several large players in the MySQL market.</p>
<p>I shall certainly be watching the progress of this alliance with great interest, it has the potential to turn the MySQL Community into a large driving force for development and change.</p>
<p>The press release is available <a href="http://www.prweb.com/releases/2009/05/prweb2417854.htm">here</a>, Monty has written some interesting thoughts about it <a href="http://monty-says.blogspot.com/2009/05/open-database-alliance-founded.html">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://pento.net/2009/05/14/open-database-alliance-awesome/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Don&#8217;t Forget to Alter your Federated Tables!</title>
		<link>http://pento.net/2009/05/05/dont-forget-to-alter-your-federated-tables/</link>
		<comments>http://pento.net/2009/05/05/dont-forget-to-alter-your-federated-tables/#comments</comments>
		<pubDate>Tue, 05 May 2009 08:40:47 +0000</pubDate>
		<dc:creator>Gary Pendergast</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[federated]]></category>
		<guid isPermaLink="false">http://pento.net/?p=229</guid>
		<description><![CDATA[If you&#8217;re using the Federated engine, here&#8217;s something important to remember (apart from the usual advice of &#8220;please don&#8217;t&#8221;). If you need to change the structure of the remote table, always remember to update the Federated table. If not, when you try to use the table, you&#8217;ll get this error: mysql&#62; SELECT * FROM foo; [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re using the Federated engine, here&#8217;s something important to remember (apart from the usual advice of &#8220;please don&#8217;t&#8221;). If you need to change the structure of the remote table, always remember to update the Federated table. If not, when you try to use the table, you&#8217;ll get this error:</p>
<div class="wp_syntax"><div class="code"><pre class="mysql" style="font-family:monospace;">mysql<span style="color: #CC0099;">&gt;</span> <span style="color: #990099; font-weight: bold;">SELECT</span> <span style="color: #CC0099;">*</span> <span style="color: #990099; font-weight: bold;">FROM</span> foo<span style="color: #000033;">;</span>
ERROR <span style="color: #008080;">1030</span> <span style="color: #FF00FF;">&#40;</span>HY000<span style="color: #FF00FF;">&#41;</span>: Got error <span style="color: #008080;">1</span> <span style="color: #990099; font-weight: bold;">from</span> storage <span style="color: #990099; font-weight: bold;">engine</span></pre></div></div>
<p>This error isn&#8217;t really helpful. The problem is, the Federated engine only checks that the remote table structure is correct when it initially connects. Once it has connected, no more checks. When you restart the server, you get a much more helpful message:</p>
<div class="wp_syntax"><div class="code"><pre class="mysql" style="font-family:monospace;">mysql <span style="color: #990099; font-weight: bold;">SELECT</span> <span style="color: #CC0099;">*</span> <span style="color: #990099; font-weight: bold;">FROM</span> foo<span style="color: #000033;">;</span>
ERROR <span style="color: #008080;">1431</span> <span style="color: #FF00FF;">&#40;</span>HY000<span style="color: #FF00FF;">&#41;</span>: The foreign <span style="color: #990099; font-weight: bold;">data</span> source you are trying <span style="color: #990099; font-weight: bold;">to</span> reference does <span style="color: #CC0099; font-weight: bold;">not</span> exist. <span style="color: #990099; font-weight: bold;">Data</span> source error:  error: <span style="color: #008080;">1054</span>  <span style="color: #008000;">'Unknown column '</span>b<span style="color: #008000;">' in '</span><span style="color: #000099;">field</span> list<span style="color: #008000;">''</span></pre></div></div>
<p>Also, keep your eye on the <a title="FederatedX Storage Engine project page" href="http://forge.mysql.com/projects/project.php?id=265">FederatedX</a> project. It&#8217;s still under development, but will hopefully upgrade the Federated engine to being useful again.</p>
]]></content:encoded>
			<wfw:commentRss>http://pento.net/2009/05/05/dont-forget-to-alter-your-federated-tables/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>MySQL is People!</title>
		<link>http://pento.net/2009/05/03/mysql-is-people/</link>
		<comments>http://pento.net/2009/05/03/mysql-is-people/#comments</comments>
		<pubDate>Sun, 03 May 2009 11:38:01 +0000</pubDate>
		<dc:creator>Gary Pendergast</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[skydiving]]></category>
		<guid isPermaLink="false">http://pento.net/?p=220</guid>
		<description><![CDATA[I went skydiving yesterday. Here&#8217;s a short video of me voluntarily leaving an airborne and perfectly sound aeroplane: What does this have to do with MySQL? Well, over the past few weeks there have been a bunch of conspiracy theories bouncing around. There are various topics, but the two favourite at the moment happen to [...]]]></description>
			<content:encoded><![CDATA[<p>I went skydiving yesterday. Here&#8217;s a short video of me voluntarily leaving an airborne and perfectly sound aeroplane:</p>
<p style="text-align: center;"><object type="application/x-shockwave-flash" style="width:480px; height:385px;" data="http://www.youtube.com/v/Qern2XzU3sg"><param name="movie" value="http://www.youtube.com/v/Qern2XzU3sg" /></object></p>
<p>What does this have to do with MySQL? Well, over the past few weeks there have been a bunch of conspiracy theories bouncing around. There are various topics, but the two favourite at the moment happen to be Oracle&#8217;s plans for MySQL, and the licensing of the MySQL documentation. There has been a long history of conspiracies surrounding MySQL, from Oracle&#8217;s original purchase of InnoDB, to our decision to create the Enterprise edition of the server, through to our long and bumpy release cycle.</p>
<p>Now, don&#8217;t get me wrong. I&#8217;m not making any calls to stifle discussion, I&#8217;m a big fan of community input. I was a member of the community before I joined MySQL, and I like to think that I still am. But I would like it if we could at least think about conspiracy theories before posting about them. We&#8217;re all people here at MySQL, we have evenings and weekends and lives just like you. Some of us are crazy enough to do silly things like jumping out of aeroplanes. We&#8217;re not out to get you, and we&#8217;re certainly not planning on turning into some sort of faceless corporate stereotype. We&#8217;re here to do what we love, creating and supporting a really good product.</p>
<p>Oh, and how do you know this isn&#8217;t some corporate play to make us seem human? Well, it&#8217;s 9:30pm on a Sunday night here, I&#8217;m yet to find a company who could pay me well enough to be shilling for them. But MySQL happens to be a group of people I like enough to defend them on my own time.</p>
]]></content:encoded>
			<wfw:commentRss>http://pento.net/2009/05/03/mysql-is-people/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>MySQL Workbench: My Impressions</title>
		<link>http://pento.net/2009/04/17/mysql-workbench-my-impressions/</link>
		<comments>http://pento.net/2009/04/17/mysql-workbench-my-impressions/#comments</comments>
		<pubDate>Fri, 17 Apr 2009 10:23:37 +0000</pubDate>
		<dc:creator>Gary Pendergast</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[MySQL Workbench]]></category>
		<guid isPermaLink="false">http://pento.net/?p=217</guid>
		<description><![CDATA[I&#8217;ve been using the MySQL Workbench 5.1 beta for the past few days now, and I&#8217;m wondering how I designed databases without it. Okay, so that&#8217;s a pretty strong statement, but I&#8217;m genuinely happy with it. 5.1 has fixed my main problem with 5.0, in that the EER diagram mode was horribly slow to render, [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using the MySQL Workbench 5.1 beta for the past few days now, and I&#8217;m wondering how I designed databases without it.</p>
<p>Okay, so that&#8217;s a pretty strong statement, but I&#8217;m genuinely happy with it. 5.1 has fixed my main problem with 5.0, in that the EER diagram mode was horribly slow to render, now it&#8217;s all nice and smooth. The ability to easily visualise tables and their relationships makes design very simple.</p>
<p>In fact, I really only have one (minor) complaint, the ability to export without foreign keys would be nice. Sometimes you just don&#8217;t want to deal with the performance hit.</p>
<p>That&#8217;s about it. Go and download the <a title="MySQL Workbench OSS 5.1 Beta download" href="http://dev.mysql.com/downloads/workbench/5.1.html#Workbench_5.1_Beta_-_Binaries_and_Source">OSS edition for free now</a>, have a play around. Make it your Friday afternoon experiment. I promise you&#8217;ll like it.</p>
]]></content:encoded>
			<wfw:commentRss>http://pento.net/2009/04/17/mysql-workbench-my-impressions/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Backing up permissions for individual databases</title>
		<link>http://pento.net/2009/03/12/backing-up-permissions-for-individual-databases/</link>
		<comments>http://pento.net/2009/03/12/backing-up-permissions-for-individual-databases/#comments</comments>
		<pubDate>Thu, 12 Mar 2009 01:00:38 +0000</pubDate>
		<dc:creator>Gary Pendergast</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[mysqldump]]></category>
		<category><![CDATA[permissions]]></category>
		<category><![CDATA[users]]></category>
		<guid isPermaLink="false">http://pento.net/?p=120</guid>
		<description><![CDATA[Sometimes, you want to backup individual databases in MySQL to move to a different server. This part is easy using mysqldump: shell> mysqldump -u root -p --databases db1 db2 ... > backup.sql The problem is, what happens when you want to backup the permissions associated with these databases? Well, here are a few queries to [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes, you want to backup individual databases in MySQL to move to a different server. This part is easy using mysqldump:</p>
<pre>
shell> mysqldump -u root -p --databases db1 db2 ... > backup.sql
</pre>
<p>The problem is, what happens when you want to backup the permissions associated with these databases? Well, here are a few queries to help you out.</p>
<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">-- Grab the users with global permissions, </span>
<span style="color: #808080; font-style: italic;">-- with permissions to the databases you want, </span>
<span style="color: #808080; font-style: italic;">-- and tables/stored procedures in it.</span>
mysql<span style="color: #66cc66;">&gt;</span> <span style="color: #993333; font-weight: bold;">SELECT</span> u<span style="color: #66cc66;">.*</span> <span style="color: #993333; font-weight: bold;">INTO</span> <span style="color: #993333; font-weight: bold;">OUTFILE</span> <span style="color: #ff0000;">'/tmp/user.txt'</span>
	<span style="color: #993333; font-weight: bold;">FIELDS</span> TERMINATED <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">','</span> <span style="color: #993333; font-weight: bold;">OPTIONALLY</span> <span style="color: #993333; font-weight: bold;">ENCLOSED</span> <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">'&quot;'</span> <span style="color: #993333; font-weight: bold;">ESCAPED</span> <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">'<span style="color: #000099; font-weight: bold;">\\</span>'</span>
	<span style="color: #993333; font-weight: bold;">LINES</span> TERMINATED <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">'<span style="color: #000099; font-weight: bold;">\n</span>'</span>
	<span style="color: #993333; font-weight: bold;">FROM</span>
		mysql<span style="color: #66cc66;">.</span>user u
	<span style="color: #993333; font-weight: bold;">WHERE</span>
		u<span style="color: #66cc66;">.</span>Select_priv<span style="color: #66cc66;">=</span><span style="color: #ff0000;">'Y'</span>
	<span style="color: #993333; font-weight: bold;">UNION</span>
	<span style="color: #993333; font-weight: bold;">SELECT</span> u<span style="color: #66cc66;">.*</span>
	<span style="color: #993333; font-weight: bold;">FROM</span>
		mysql<span style="color: #66cc66;">.</span>user u<span style="color: #66cc66;">,</span>
		mysql<span style="color: #66cc66;">.</span>db d
	<span style="color: #993333; font-weight: bold;">WHERE</span>
		d<span style="color: #66cc66;">.</span>Db <span style="color: #993333; font-weight: bold;">IN</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'db1'</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'db2'</span><span style="color: #66cc66;">,</span> <span style="color: #66cc66;">...</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">AND</span>
		d<span style="color: #66cc66;">.</span>User <span style="color: #66cc66;">=</span> u<span style="color: #66cc66;">.</span>user
	<span style="color: #993333; font-weight: bold;">UNION</span>
	<span style="color: #993333; font-weight: bold;">SELECT</span> u<span style="color: #66cc66;">.*</span>
	<span style="color: #993333; font-weight: bold;">FROM</span>
		mysql<span style="color: #66cc66;">.</span>user u<span style="color: #66cc66;">,</span>
		mysql<span style="color: #66cc66;">.</span>tables_priv t
	<span style="color: #993333; font-weight: bold;">WHERE</span>
		t<span style="color: #66cc66;">.</span>Db <span style="color: #993333; font-weight: bold;">IN</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'db1'</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'db2'</span><span style="color: #66cc66;">,</span> <span style="color: #66cc66;">...</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">AND</span>
		t<span style="color: #66cc66;">.</span>User <span style="color: #66cc66;">=</span> u<span style="color: #66cc66;">.</span>User
	<span style="color: #993333; font-weight: bold;">UNION</span>
	<span style="color: #993333; font-weight: bold;">SELECT</span> u<span style="color: #66cc66;">.*</span>
	<span style="color: #993333; font-weight: bold;">FROM</span>
		mysql<span style="color: #66cc66;">.</span>user u<span style="color: #66cc66;">,</span>
		mysql<span style="color: #66cc66;">.</span>procs_priv p
	<span style="color: #993333; font-weight: bold;">WHERE</span>
		p<span style="color: #66cc66;">.</span>Db <span style="color: #993333; font-weight: bold;">IN</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'db1'</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'db2'</span><span style="color: #66cc66;">,</span> <span style="color: #66cc66;">...</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">AND</span>
		p<span style="color: #66cc66;">.</span>User <span style="color: #66cc66;">=</span> u<span style="color: #66cc66;">.</span>User;
&nbsp;
<span style="color: #808080; font-style: italic;">-- Now, grab the database permissions, and those of objects in the database.</span>
mysql<span style="color: #66cc66;">&gt;</span> <span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <span style="color: #993333; font-weight: bold;">INTO</span> <span style="color: #993333; font-weight: bold;">OUTFILE</span> <span style="color: #ff0000;">'/tmp/db.txt'</span>
	<span style="color: #993333; font-weight: bold;">FIELDS</span> TERMINATED <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">','</span> <span style="color: #993333; font-weight: bold;">OPTIONALLY</span> <span style="color: #993333; font-weight: bold;">ENCLOSED</span> <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">'&quot;'</span> <span style="color: #993333; font-weight: bold;">ESCAPED</span> <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">'<span style="color: #000099; font-weight: bold;">\\</span>'</span>
	<span style="color: #993333; font-weight: bold;">LINES</span> TERMINATED <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">'<span style="color: #000099; font-weight: bold;">\n</span>'</span>
	<span style="color: #993333; font-weight: bold;">FROM</span>
		mysql<span style="color: #66cc66;">.</span>db
	<span style="color: #993333; font-weight: bold;">WHERE</span>
		Db <span style="color: #993333; font-weight: bold;">IN</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'db1'</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'db2'</span><span style="color: #66cc66;">,</span> <span style="color: #66cc66;">...</span><span style="color: #66cc66;">&#41;</span>;
mysql<span style="color: #66cc66;">&gt;</span> <span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <span style="color: #993333; font-weight: bold;">INTO</span> <span style="color: #993333; font-weight: bold;">OUTFILE</span> <span style="color: #ff0000;">'/tmp/tables_priv.txt'</span>
	<span style="color: #993333; font-weight: bold;">FIELDS</span> TERMINATED <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">','</span> <span style="color: #993333; font-weight: bold;">OPTIONALLY</span> <span style="color: #993333; font-weight: bold;">ENCLOSED</span> <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">'&quot;'</span> <span style="color: #993333; font-weight: bold;">ESCAPED</span> <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">'<span style="color: #000099; font-weight: bold;">\\</span>'</span>
	<span style="color: #993333; font-weight: bold;">LINES</span> TERMINATED <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">'<span style="color: #000099; font-weight: bold;">\n</span>'</span>
	<span style="color: #993333; font-weight: bold;">FROM</span>
		mysql<span style="color: #66cc66;">.</span>tables_priv
	<span style="color: #993333; font-weight: bold;">WHERE</span>
		Db <span style="color: #993333; font-weight: bold;">IN</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'db1'</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'db2'</span><span style="color: #66cc66;">,</span> <span style="color: #66cc66;">...</span><span style="color: #66cc66;">&#41;</span>;
mysql<span style="color: #66cc66;">&gt;</span> <span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <span style="color: #993333; font-weight: bold;">INTO</span> <span style="color: #993333; font-weight: bold;">OUTFILE</span> <span style="color: #ff0000;">'/tmp/procs_priv.txt'</span>
	<span style="color: #993333; font-weight: bold;">FIELDS</span> TERMINATED <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">','</span> <span style="color: #993333; font-weight: bold;">OPTIONALLY</span> <span style="color: #993333; font-weight: bold;">ENCLOSED</span> <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">'&quot;'</span> <span style="color: #993333; font-weight: bold;">ESCAPED</span> <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">'<span style="color: #000099; font-weight: bold;">\\</span>'</span>
	<span style="color: #993333; font-weight: bold;">LINES</span> TERMINATED <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">'<span style="color: #000099; font-weight: bold;">\n</span>'</span>
	<span style="color: #993333; font-weight: bold;">FROM</span>
		mysql<span style="color: #66cc66;">.</span>procs_priv
	<span style="color: #993333; font-weight: bold;">WHERE</span>
		Db <span style="color: #993333; font-weight: bold;">IN</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'db1'</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'db2'</span><span style="color: #66cc66;">,</span> <span style="color: #66cc66;">...</span><span style="color: #66cc66;">&#41;</span>;</pre></div></div>
<p>Then, re-loading the permissions onto the new server is simple:</p>
<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;">mysql<span style="color: #66cc66;">&gt;</span> <span style="color: #993333; font-weight: bold;">LOAD</span> <span style="color: #993333; font-weight: bold;">DATA</span> <span style="color: #993333; font-weight: bold;">INFILE</span> <span style="color: #ff0000;">'/tmp/user.txt'</span>
	<span style="color: #993333; font-weight: bold;">FIELDS</span> TERMINATED <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">','</span> <span style="color: #993333; font-weight: bold;">OPTIONALLY</span> <span style="color: #993333; font-weight: bold;">ENCLOSED</span> <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">'&quot;'</span> <span style="color: #993333; font-weight: bold;">ESCAPED</span> <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">'<span style="color: #000099; font-weight: bold;">\\</span>'</span>
	<span style="color: #993333; font-weight: bold;">LINES</span> TERMINATED <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">'<span style="color: #000099; font-weight: bold;">\n</span>'</span>
	<span style="color: #993333; font-weight: bold;">INTO</span> <span style="color: #993333; font-weight: bold;">TABLE</span> mysql<span style="color: #66cc66;">.</span>user;
mysql<span style="color: #66cc66;">&gt;</span> <span style="color: #993333; font-weight: bold;">LOAD</span> <span style="color: #993333; font-weight: bold;">DATA</span> <span style="color: #993333; font-weight: bold;">INFILE</span> <span style="color: #ff0000;">'/tmp/db.txt'</span>
	<span style="color: #993333; font-weight: bold;">FIELDS</span> TERMINATED <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">','</span> <span style="color: #993333; font-weight: bold;">OPTIONALLY</span> <span style="color: #993333; font-weight: bold;">ENCLOSED</span> <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">'&quot;'</span> <span style="color: #993333; font-weight: bold;">ESCAPED</span> <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">'<span style="color: #000099; font-weight: bold;">\\</span>'</span>
	<span style="color: #993333; font-weight: bold;">LINES</span> TERMINATED <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">'<span style="color: #000099; font-weight: bold;">\n</span>'</span>
	<span style="color: #993333; font-weight: bold;">INTO</span> <span style="color: #993333; font-weight: bold;">TABLE</span> mysql<span style="color: #66cc66;">.</span>db;
mysql<span style="color: #66cc66;">&gt;</span> <span style="color: #993333; font-weight: bold;">LOAD</span> <span style="color: #993333; font-weight: bold;">DATA</span> <span style="color: #993333; font-weight: bold;">INFILE</span> <span style="color: #ff0000;">'/tmp/tables_priv.txt'</span>
	<span style="color: #993333; font-weight: bold;">FIELDS</span> TERMINATED <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">','</span> <span style="color: #993333; font-weight: bold;">OPTIONALLY</span> <span style="color: #993333; font-weight: bold;">ENCLOSED</span> <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">'&quot;'</span> <span style="color: #993333; font-weight: bold;">ESCAPED</span> <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">'<span style="color: #000099; font-weight: bold;">\\</span>'</span>
	<span style="color: #993333; font-weight: bold;">LINES</span> TERMINATED <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">'<span style="color: #000099; font-weight: bold;">\n</span>'</span>
	<span style="color: #993333; font-weight: bold;">INTO</span> <span style="color: #993333; font-weight: bold;">TABLE</span> mysql<span style="color: #66cc66;">.</span>tables_priv;
mysql<span style="color: #66cc66;">&gt;</span> <span style="color: #993333; font-weight: bold;">LOAD</span> <span style="color: #993333; font-weight: bold;">DATA</span> <span style="color: #993333; font-weight: bold;">INFILE</span> <span style="color: #ff0000;">'/tmp/procs_priv.txt'</span>
	<span style="color: #993333; font-weight: bold;">FIELDS</span> TERMINATED <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">','</span> <span style="color: #993333; font-weight: bold;">OPTIONALLY</span> <span style="color: #993333; font-weight: bold;">ENCLOSED</span> <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">'&quot;'</span> <span style="color: #993333; font-weight: bold;">ESCAPED</span> <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">'<span style="color: #000099; font-weight: bold;">\\</span>'</span>
	<span style="color: #993333; font-weight: bold;">LINES</span> TERMINATED <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">'<span style="color: #000099; font-weight: bold;">\n</span>'</span>
	<span style="color: #993333; font-weight: bold;">INTO</span> <span style="color: #993333; font-weight: bold;">TABLE</span> mysql<span style="color: #66cc66;">.</span>procs_priv;</pre></div></div>
<p>All up, a few queries to account for everything, but pretty easy to include in your backup/restore process. For further development, you could put the database list in a variable, so that you only need to change it on one line, rather than 6.</p>
]]></content:encoded>
			<wfw:commentRss>http://pento.net/2009/03/12/backing-up-permissions-for-individual-databases/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>A Brief Introduction to MySQL Performance Tuning</title>
		<link>http://pento.net/2009/03/05/a-brief-introduction-to-mysql-performance-tuning/</link>
		<comments>http://pento.net/2009/03/05/a-brief-introduction-to-mysql-performance-tuning/#comments</comments>
		<pubDate>Thu, 05 Mar 2009 02:04:01 +0000</pubDate>
		<dc:creator>Gary Pendergast</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[InnoDB]]></category>
		<category><![CDATA[performance]]></category>
		<guid isPermaLink="false">http://pento.net/?p=116</guid>
		<description><![CDATA[Here are some common performance tuning concepts that I frequently run into. Please note that this really is only a basic introduction to performance tuning. For more in-depth tuning, it strongly depends on your systems, data and usage. Server Variables For tuning InnoDB performance, your primary variable is innodb_buffer_pool_size. This is the chunk of memory [...]]]></description>
			<content:encoded><![CDATA[<p>Here are some common performance tuning concepts that I frequently run into. Please note that this really is only a basic introduction to performance tuning. For more in-depth tuning, it strongly depends on your systems, data and usage.</p>
<h2>Server Variables</h2>
<p>For tuning InnoDB performance, your primary variable is <code>innodb_buffer_pool_size</code>. This is the chunk of memory that InnoDB uses for caching data, indexes and various pieces of information about your database. The bigger, the better. If you can cache all of your data in memory, you&#8217;ll see significant performance improvements.</p>
<p>For MyISAM, there is a similar buffer defined by <code>key_buffer_size</code>, though this is only used for indexes, not data. Again, the bigger, the better.</p>
<p>Other variables that are worth investigating for performance tuning are:</p>
<p><code>query_cache_size</code> &#8211; This can be very useful if you have a small number of read queries that are repeated frequently, with no write queries in between. There have been problems with too large a query cache locking up the server, so you will need to experiment to find a value that&#8217;s right for you.</p>
<p><code>innodb_log_file_size</code> &#8211; Don&#8217;t fall into the trap of setting this to be too large. A large InnoDB log file group is necessary if you have lots of large, concurrent transactions, but comes at the expense of slowing down InnoDB recover, in event of a crash.</p>
<p><code>sort_buffer_size</code> &#8211; Another one that shouldn&#8217;t be set too large. Peter Zaitsev did <a href="http://www.mysqlperformanceblog.com/2007/09/17/mysql-what-read_buffer_size-value-is-optimal/">some testing</a> a while back showing that increasing sort_buffer_size can in fact reduce the speed of the query.</p>
<h2>Server Hardware</h2>
<p>There are a few solid recommendations for improving the performance of MySQL by upgrading your hardware:</p>
<ul>
<li>Use a 64-bit processor, operating system and MySQL binary. This will allow you to address lots of RAM. At this point in time, InnoDB does have issues scaling past 8 cores, so you don&#8217;t need to go out of your way to have lots of processors.</li>
<li>Speaking of RAM, buy lots of it. Enough to fit all of your data and indexes, if you can.</li>
<li>If you can&#8217;t fit all of your data into RAM, you&#8217;ll need fast disks, RAID if you can. Have multiple disks, so you can seperate your data files, OS files and log files onto different physical disks.</li>
</ul>
<h2>Query Tuning</h2>
<p>Finally, though probably the most important, we look at tuning queries. In particular, we make sure that they&#8217;re using indexes, and they&#8217;re running quickly. To do so, turn on the Slow Query Log for a day, with <code>log_queries_not_using_indexes</code> enabled as well. Run the resulting log through <a href="http://dev.mysql.com/doc/refman/5.1/en/mysqldumpslow.html">mysqldumpslow</a>, which will produce a summary of the log. This will help you prioritize which queries to tackle first. Then, you can use EXPLAIN to find out what they&#8217;re doing, and adjust your indexes accordingly.</p>
<p>Have fun!</p>
]]></content:encoded>
			<wfw:commentRss>http://pento.net/2009/03/05/a-brief-introduction-to-mysql-performance-tuning/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Don&#8217;t Quote Your Numbers</title>
		<link>http://pento.net/2009/03/03/dont-quote-your-numbers/</link>
		<comments>http://pento.net/2009/03/03/dont-quote-your-numbers/#comments</comments>
		<pubDate>Tue, 03 Mar 2009 02:30:42 +0000</pubDate>
		<dc:creator>Gary Pendergast</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[bugs]]></category>
		<category><![CDATA[performance]]></category>
		<guid isPermaLink="false">http://pento.net/?p=111</guid>
		<description><![CDATA[It&#8217;s a fairly simple rule, and something that should be obeyed for your health and sanity. There are a couple of bugs which you could run into, when quoting large numbers. First of all, Bug #34384. This is concerning quoting large INTs in the WHERE condition of an UPDATE or DELETE. It seems that this [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s a fairly simple rule, and something that should be obeyed for your health and sanity.</p>
<p>There are a couple of bugs which you could run into, when quoting large numbers. First of all, <a title="MySQL Bug #34384: Big quoted int in WHERE of UPDATE or DELETE causes drop in performance" href="http://bugs.mysql.com/34384">Bug #34384</a>. This is concerning quoting large INTs in the WHERE condition of an UPDATE or DELETE. It seems that this will cause a table scan, which is going to be slooooow on big tables.</p>
<p>Similarly, there is the more recently discovered <a title="MySQL Bug #43319: Table/index scan when quoting large numbers in an 'IN' of a SELECT ... WHERE" href="http://bugs.mysql.com/43319">Bug #43319</a>. You can run into this if you quote large INTs in the IN clause of a SELECT &#8230; WHERE. For example:</p>
<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;">mysql<span style="color: #66cc66;">&gt;</span> <span style="color: #993333; font-weight: bold;">EXPLAIN</span> <span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <span style="color: #993333; font-weight: bold;">FROM</span> a <span style="color: #993333; font-weight: bold;">WHERE</span> a <span style="color: #993333; font-weight: bold;">IN</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'9999999999999999999999'</span><span style="color: #66cc66;">&#41;</span>\G
<span style="color: #66cc66;">***************************</span> 1<span style="color: #66cc66;">.</span> row <span style="color: #66cc66;">***************************</span>
           id: <span style="color: #cc66cc;">1</span>
  select_type: SIMPLE
        <span style="color: #993333; font-weight: bold;">TABLE</span>: <span style="color: #993333; font-weight: bold;">NULL</span>
         type: <span style="color: #993333; font-weight: bold;">NULL</span>
possible_keys: <span style="color: #993333; font-weight: bold;">NULL</span>
          <span style="color: #993333; font-weight: bold;">KEY</span>: <span style="color: #993333; font-weight: bold;">NULL</span>
      key_len: <span style="color: #993333; font-weight: bold;">NULL</span>
          ref: <span style="color: #993333; font-weight: bold;">NULL</span>
         rows: <span style="color: #993333; font-weight: bold;">NULL</span>
        Extra: Impossible <span style="color: #993333; font-weight: bold;">WHERE</span> noticed after reading const <span style="color: #993333; font-weight: bold;">TABLES</span>
<span style="color: #cc66cc;">1</span> row <span style="color: #993333; font-weight: bold;">IN</span> <span style="color: #993333; font-weight: bold;">SET</span> <span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">0.00</span> sec<span style="color: #66cc66;">&#41;</span>
&nbsp;
mysql<span style="color: #66cc66;">&gt;</span> <span style="color: #993333; font-weight: bold;">EXPLAIN</span> <span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <span style="color: #993333; font-weight: bold;">FROM</span> a <span style="color: #993333; font-weight: bold;">WHERE</span> a <span style="color: #993333; font-weight: bold;">IN</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'9999999999999999999999'</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'9999999999999999999999'</span><span style="color: #66cc66;">&#41;</span>\G
<span style="color: #66cc66;">***************************</span> 1<span style="color: #66cc66;">.</span> row <span style="color: #66cc66;">***************************</span>
           id: <span style="color: #cc66cc;">1</span>
  select_type: SIMPLE
        <span style="color: #993333; font-weight: bold;">TABLE</span>: a
         type: <span style="color: #993333; font-weight: bold;">ALL</span>
possible_keys: <span style="color: #993333; font-weight: bold;">PRIMARY</span>
          <span style="color: #993333; font-weight: bold;">KEY</span>: <span style="color: #993333; font-weight: bold;">NULL</span>
      key_len: <span style="color: #993333; font-weight: bold;">NULL</span>
          ref: <span style="color: #993333; font-weight: bold;">NULL</span>
         rows: <span style="color: #cc66cc;">655360</span>
        Extra: <span style="color: #993333; font-weight: bold;">USING</span> <span style="color: #993333; font-weight: bold;">WHERE</span>
<span style="color: #cc66cc;">1</span> row <span style="color: #993333; font-weight: bold;">IN</span> <span style="color: #993333; font-weight: bold;">SET</span> <span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">0.00</span> sec<span style="color: #66cc66;">&#41;</span></pre></div></div>
<p>Note that you only run into it when you quote multiple large numbers.</p>
<p>Anyway, the long and the short of this post is: if at all possible, don&#8217;t quote numbers. MySQL will love you for it.</p>
]]></content:encoded>
			<wfw:commentRss>http://pento.net/2009/03/03/dont-quote-your-numbers/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>The \G modifier in the MySQL command line client</title>
		<link>http://pento.net/2009/02/27/the-g-modifier-in-the-mysql-command-line-client/</link>
		<comments>http://pento.net/2009/02/27/the-g-modifier-in-the-mysql-command-line-client/#comments</comments>
		<pubDate>Fri, 27 Feb 2009 05:30:59 +0000</pubDate>
		<dc:creator>Gary Pendergast</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<guid isPermaLink="false">http://pento.net/?p=108</guid>
		<description><![CDATA[A little publicized, but exceedingly useful feature of the MySQL command line client is the \G modifier. It formats the query output nicely, so you can read through it easier. To use it, you just replace the semi-colon at the end of the query with &#8216;\G&#8217;. For example, checking the master status: mysql&#62; SHOW MASTER [...]]]></description>
			<content:encoded><![CDATA[<p>A little publicized, but exceedingly useful feature of the MySQL command line client is the \G modifier. It formats the query output nicely, so you can read through it easier. To use it, you just replace the semi-colon at the end of the query with &#8216;\G&#8217;.</p>
<p>For example, checking the master status:</p>
<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;">mysql<span style="color: #66cc66;">&gt;</span> <span style="color: #993333; font-weight: bold;">SHOW</span> MASTER <span style="color: #993333; font-weight: bold;">STATUS</span>;
<span style="color: #66cc66;">+</span><span style="color: #808080; font-style: italic;">------------------+----------+--------------+------------------+</span>
<span style="color: #66cc66;">|</span> File             <span style="color: #66cc66;">|</span> Position <span style="color: #66cc66;">|</span> Binlog_Do_DB <span style="color: #66cc66;">|</span> Binlog_Ignore_DB <span style="color: #66cc66;">|</span>
<span style="color: #66cc66;">+</span><span style="color: #808080; font-style: italic;">------------------+----------+--------------+------------------+</span>
<span style="color: #66cc66;">|</span> mysql<span style="color: #66cc66;">-</span>bin<span style="color: #66cc66;">.</span>000193 <span style="color: #66cc66;">|</span>     <span style="color: #cc66cc;">7061</span> <span style="color: #66cc66;">|</span>              <span style="color: #66cc66;">|</span>                  <span style="color: #66cc66;">|</span>
<span style="color: #66cc66;">+</span><span style="color: #808080; font-style: italic;">------------------+----------+--------------+------------------+</span>
<span style="color: #cc66cc;">1</span> row <span style="color: #993333; font-weight: bold;">IN</span> <span style="color: #993333; font-weight: bold;">SET</span> <span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">0.00</span> sec<span style="color: #66cc66;">&#41;</span>
&nbsp;
mysql<span style="color: #66cc66;">&gt;</span> <span style="color: #993333; font-weight: bold;">SHOW</span> MASTER <span style="color: #993333; font-weight: bold;">STATUS</span>\G
<span style="color: #66cc66;">***************************</span> 1<span style="color: #66cc66;">.</span> row <span style="color: #66cc66;">***************************</span>
            File: mysql<span style="color: #66cc66;">-</span>bin<span style="color: #66cc66;">.</span>000193
        Position: <span style="color: #cc66cc;">7061</span>
    Binlog_Do_DB:
Binlog_Ignore_DB:
<span style="color: #cc66cc;">1</span> row <span style="color: #993333; font-weight: bold;">IN</span> <span style="color: #993333; font-weight: bold;">SET</span> <span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">0.00</span> sec<span style="color: #66cc66;">&#41;</span></pre></div></div>
<p>Now try this for the much larger <code>SHOW SLAVE STATUS</code>. Or for the enormous <code>SHOW ENGINE INNODB STATUS</code>.</p>
<p>As you can see, this is a handy option to make your console output much easier to read.</p>
]]></content:encoded>
			<wfw:commentRss>http://pento.net/2009/02/27/the-g-modifier-in-the-mysql-command-line-client/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
