<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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>Comments on: Dynamic General and Slow Query Log Before MySQL 5.1</title>
	<atom:link href="http://www.pythian.com/news/4288/dynamic-general-and-slow-query-log-before-mysql-5-1/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pythian.com/news/4288/dynamic-general-and-slow-query-log-before-mysql-5-1/</link>
	<description>News and views from Pythian DBAs</description>
	<lastBuildDate>Fri, 10 Feb 2012 13:01:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
	<item>
		<title>By: Four Short Links, Oct 14, 2009 &#124; ghostar</title>
		<link>http://www.pythian.com/news/4288/dynamic-general-and-slow-query-log-before-mysql-5-1/#comment-487505</link>
		<dc:creator>Four Short Links, Oct 14, 2009 &#124; ghostar</dc:creator>
		<pubDate>Fri, 24 Dec 2010 01:13:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/news/?p=4288#comment-487505</guid>
		<description>[...] Dynamic general and slow query log before MySQL 5.1 &#8211; This is an interesting way of handling the slow and general query logs on pre-5.1 MySQL instances. We don&#8217;t need this on slow, but there&#8217;s been occasions that we&#8217;ve needed the general query log, but enabling it and disabling it requires a full restart of the service on 5.0 and earlier. You still take a performance hit because you&#8217;re always logging, but I would think it to be fairly minimized on modern fast hardware. [...]</description>
		<content:encoded><![CDATA[<p>[...] Dynamic general and slow query log before MySQL 5.1 &#8211; This is an interesting way of handling the slow and general query logs on pre-5.1 MySQL instances. We don&#8217;t need this on slow, but there&#8217;s been occasions that we&#8217;ve needed the general query log, but enabling it and disabling it requires a full restart of the service on 5.0 and earlier. You still take a performance hit because you&#8217;re always logging, but I would think it to be fairly minimized on modern fast hardware. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: &#187; Four Short Links, Oct 14, 2009 Just Another ITS Systems Guy</title>
		<link>http://www.pythian.com/news/4288/dynamic-general-and-slow-query-log-before-mysql-5-1/#comment-379193</link>
		<dc:creator>&#187; Four Short Links, Oct 14, 2009 Just Another ITS Systems Guy</dc:creator>
		<pubDate>Wed, 14 Oct 2009 16:42:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/news/?p=4288#comment-379193</guid>
		<description>[...] Dynamic general and slow query log before MySQL 5.1 - This is an interesting way of handling the slow and general query logs on pre-5.1 MySQL instances. We don&#8217;t need this on slow, but there&#8217;s been occasions that we&#8217;ve needed the general query log, but enabling it and disabling it requires a full restart of the service on 5.0 and earlier. You still take a performance hit because you&#8217;re always logging, but I would think it to be fairly minimized on modern fast hardware. [...]</description>
		<content:encoded><![CDATA[<p>[...] Dynamic general and slow query log before MySQL 5.1 &#8211; This is an interesting way of handling the slow and general query logs on pre-5.1 MySQL instances. We don&#8217;t need this on slow, but there&#8217;s been occasions that we&#8217;ve needed the general query log, but enabling it and disabling it requires a full restart of the service on 5.0 and earlier. You still take a performance hit because you&#8217;re always logging, but I would think it to be fairly minimized on modern fast hardware. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Log Buffer #165: a Carnival of the Vanities for DBAs &#124; Pythian Group Blog</title>
		<link>http://www.pythian.com/news/4288/dynamic-general-and-slow-query-log-before-mysql-5-1/#comment-378589</link>
		<dc:creator>Log Buffer #165: a Carnival of the Vanities for DBAs &#124; Pythian Group Blog</dc:creator>
		<pubDate>Fri, 09 Oct 2009 16:55:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/news/?p=4288#comment-378589</guid>
		<description>[...] Sheeri Cabral relates a little hack she found to simulate a dynamic general and slow query log before MySQL 5.1. She writes, &#8220;If you are in a similar position — where you frequently need to turn the [...]</description>
		<content:encoded><![CDATA[<p>[...] Sheeri Cabral relates a little hack she found to simulate a dynamic general and slow query log before MySQL 5.1. She writes, &#8220;If you are in a similar position — where you frequently need to turn the [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sheeri Cabral</title>
		<link>http://www.pythian.com/news/4288/dynamic-general-and-slow-query-log-before-mysql-5-1/#comment-378439</link>
		<dc:creator>Sheeri Cabral</dc:creator>
		<pubDate>Thu, 08 Oct 2009 14:45:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/news/?p=4288#comment-378439</guid>
		<description>Raymond -- yes, so if the general query log is in

/var/lib/mysql/mysql-general.log

then an ls -l would show

/var/lib/mysql/mysql-general.log -&gt; /dev/null

And to &quot;turn the query log on&quot; all they need to do is:

rm /var/lib/mysql/mysql-general.log

and at the mysql command prompt:

mysql&gt; FLUSH LOGS;</description>
		<content:encoded><![CDATA[<p>Raymond &#8212; yes, so if the general query log is in</p>
<p>/var/lib/mysql/mysql-general.log</p>
<p>then an ls -l would show</p>
<p>/var/lib/mysql/mysql-general.log -> /dev/null</p>
<p>And to &#8220;turn the query log on&#8221; all they need to do is:</p>
<p>rm /var/lib/mysql/mysql-general.log</p>
<p>and at the mysql command prompt:</p>
<p>mysql> FLUSH LOGS;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Take a look at mk-query-digest &#124; MySQL Expert &#124; MySQL Performance &#124; MySQL Scalability</title>
		<link>http://www.pythian.com/news/4288/dynamic-general-and-slow-query-log-before-mysql-5-1/#comment-378433</link>
		<dc:creator>Take a look at mk-query-digest &#124; MySQL Expert &#124; MySQL Performance &#124; MySQL Scalability</dc:creator>
		<pubDate>Thu, 08 Oct 2009 13:49:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/news/?p=4288#comment-378433</guid>
		<description>[...] just wrote about Dynamic General and Slow Query Log Before MySQL 5.1 which apart from the File I/O overhead is an idea I&#8217;d not considered before. What may be a [...]</description>
		<content:encoded><![CDATA[<p>[...] just wrote about Dynamic General and Slow Query Log Before MySQL 5.1 which apart from the File I/O overhead is an idea I&#8217;d not considered before. What may be a [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: raymond</title>
		<link>http://www.pythian.com/news/4288/dynamic-general-and-slow-query-log-before-mysql-5-1/#comment-378386</link>
		<dc:creator>raymond</dc:creator>
		<pubDate>Thu, 08 Oct 2009 02:47:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/news/?p=4288#comment-378386</guid>
		<description>Hi...I am begineer of Mysql,

According to the hack which you mention, it General and slow query log is turn on &#039;all the while&#039; but spool to /dev/null.

So when they needed the actual output , will it mean just change the location will do ?</description>
		<content:encoded><![CDATA[<p>Hi&#8230;I am begineer of Mysql,</p>
<p>According to the hack which you mention, it General and slow query log is turn on &#8216;all the while&#8217; but spool to /dev/null.</p>
<p>So when they needed the actual output , will it mean just change the location will do ?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

