<?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: Enabling/Disabling query log without server restart in MySQL 5.0</title>
	<atom:link href="http://www.mysqlperformanceblog.com/2007/09/13/enablingdisabling-query-log-without-server-restart-in-mysql-50/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mysqlperformanceblog.com/2007/09/13/enablingdisabling-query-log-without-server-restart-in-mysql-50/</link>
	<description>Percona&#039;s MySQL &#38; InnoDB performance and scalability blog</description>
	<lastBuildDate>Sat, 11 Feb 2012 16:45:54 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: vesko</title>
		<link>http://www.mysqlperformanceblog.com/2007/09/13/enablingdisabling-query-log-without-server-restart-in-mysql-50/comment-page-1/#comment-776190</link>
		<dc:creator>vesko</dc:creator>
		<pubDate>Wed, 29 Sep 2010 12:13:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2007/09/13/enablingdisabling-query-log-without-server-restart-in-mysql-50/#comment-776190</guid>
		<description>Here it is. The target file is in the same dir as the link in /var/log/

lrwxrwxrwx  1 mysql mysql        14 Aug 26 05:31 mysql-full1.log -&gt; mysql-full.log
-rwxrwxrwx  1 mysql mysql 152694272 Aug 26 05:04 mysql-full.log

MySQL is instructed to use it:

log=/var/log/mysql-full1.log

And here&#039;s the error

07:07:19  mysqld started
^G/usr/libexec/mysqld: File &#039;/var/log/mysql-full1.log&#039; not found (Errcode: 13)
7:07:19 [ERROR] Could not use /var/log/mysql-full1.log for logging (error 13). Turning logging off for the whole duration of the MySQL server process. To turn it on again: fix the cause, shutdown the MySQL server and restart it.</description>
		<content:encoded><![CDATA[<p>Here it is. The target file is in the same dir as the link in /var/log/</p>
<p>lrwxrwxrwx  1 mysql mysql        14 Aug 26 05:31 mysql-full1.log -&gt; mysql-full.log<br />
-rwxrwxrwx  1 mysql mysql 152694272 Aug 26 05:04 mysql-full.log</p>
<p>MySQL is instructed to use it:</p>
<p>log=/var/log/mysql-full1.log</p>
<p>And here&#8217;s the error</p>
<p>07:07:19  mysqld started<br />
^G/usr/libexec/mysqld: File &#8216;/var/log/mysql-full1.log&#8217; not found (Errcode: 13)<br />
7:07:19 [ERROR] Could not use /var/log/mysql-full1.log for logging (error 13). Turning logging off for the whole duration of the MySQL server process. To turn it on again: fix the cause, shutdown the MySQL server and restart it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter</title>
		<link>http://www.mysqlperformanceblog.com/2007/09/13/enablingdisabling-query-log-without-server-restart-in-mysql-50/comment-page-1/#comment-773159</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Sat, 04 Sep 2010 00:04:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2007/09/13/enablingdisabling-query-log-without-server-restart-in-mysql-50/#comment-773159</guid>
		<description>Hi,

Check out permission for directories as well. It could be there is no access to the directory where this file is located or some higher level directory.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Check out permission for directories as well. It could be there is no access to the directory where this file is located or some higher level directory.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vesko</title>
		<link>http://www.mysqlperformanceblog.com/2007/09/13/enablingdisabling-query-log-without-server-restart-in-mysql-50/comment-page-1/#comment-772875</link>
		<dc:creator>vesko</dc:creator>
		<pubDate>Wed, 01 Sep 2010 00:49:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2007/09/13/enablingdisabling-query-log-without-server-restart-in-mysql-50/#comment-772875</guid>
		<description>I&#039;m trying to use a symbolic link for general log file as described in your book. It seems like a nice and clean solution for enabling/disabling query log dynamically on MySQL 5.0

However I&#039;m having the following error:

Error 13. Turning logging off for the whole duration of the MySQL server process. To turn it on again: fix the cause, shutdown the MySQL server and restart it

I made sure the symlink and the file that it points to are owned by the mysql user. It still gives me that error 13 (permission denied)</description>
		<content:encoded><![CDATA[<p>I&#8217;m trying to use a symbolic link for general log file as described in your book. It seems like a nice and clean solution for enabling/disabling query log dynamically on MySQL 5.0</p>
<p>However I&#8217;m having the following error:</p>
<p>Error 13. Turning logging off for the whole duration of the MySQL server process. To turn it on again: fix the cause, shutdown the MySQL server and restart it</p>
<p>I made sure the symlink and the file that it points to are owned by the mysql user. It still gives me that error 13 (permission denied)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter</title>
		<link>http://www.mysqlperformanceblog.com/2007/09/13/enablingdisabling-query-log-without-server-restart-in-mysql-50/comment-page-1/#comment-337507</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Wed, 30 Jul 2008 16:13:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2007/09/13/enablingdisabling-query-log-without-server-restart-in-mysql-50/#comment-337507</guid>
		<description>You can&#039;t turn on/off slow query log globally in MySQL 5.0 (though you can use trick described)</description>
		<content:encoded><![CDATA[<p>You can&#8217;t turn on/off slow query log globally in MySQL 5.0 (though you can use trick described)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jk</title>
		<link>http://www.mysqlperformanceblog.com/2007/09/13/enablingdisabling-query-log-without-server-restart-in-mysql-50/comment-page-1/#comment-336863</link>
		<dc:creator>jk</dc:creator>
		<pubDate>Tue, 29 Jul 2008 18:15:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2007/09/13/enablingdisabling-query-log-without-server-restart-in-mysql-50/#comment-336863</guid>
		<description>allow me to follow up on this post:
So does mysql 5.0.X  not allow dynamically switching general query at all?</description>
		<content:encoded><![CDATA[<p>allow me to follow up on this post:<br />
So does mysql 5.0.X  not allow dynamically switching general query at all?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter</title>
		<link>http://www.mysqlperformanceblog.com/2007/09/13/enablingdisabling-query-log-without-server-restart-in-mysql-50/comment-page-1/#comment-326767</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Sat, 12 Jul 2008 00:56:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2007/09/13/enablingdisabling-query-log-without-server-restart-in-mysql-50/#comment-326767</guid>
		<description>Bill,

It was my impression this allows to disable logging statements for this session only, while I&#039;m speaking about global log.</description>
		<content:encoded><![CDATA[<p>Bill,</p>
<p>It was my impression this allows to disable logging statements for this session only, while I&#8217;m speaking about global log.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bill</title>
		<link>http://www.mysqlperformanceblog.com/2007/09/13/enablingdisabling-query-log-without-server-restart-in-mysql-50/comment-page-1/#comment-326758</link>
		<dc:creator>bill</dc:creator>
		<pubDate>Sat, 12 Jul 2008 00:14:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2007/09/13/enablingdisabling-query-log-without-server-restart-in-mysql-50/#comment-326758</guid>
		<description>set sql_log_off = &#039;ON&#039;; 
turns of the log without restarting

set sql_log_off = &#039;OFF&#039;; 
turns it back on

this works on 5.0, anyway</description>
		<content:encoded><![CDATA[<p>set sql_log_off = &#8216;ON&#8217;;<br />
turns of the log without restarting</p>
<p>set sql_log_off = &#8216;OFF&#8217;;<br />
turns it back on</p>
<p>this works on 5.0, anyway</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eike Herzbach</title>
		<link>http://www.mysqlperformanceblog.com/2007/09/13/enablingdisabling-query-log-without-server-restart-in-mysql-50/comment-page-1/#comment-168588</link>
		<dc:creator>Eike Herzbach</dc:creator>
		<pubDate>Sun, 16 Sep 2007 13:50:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2007/09/13/enablingdisabling-query-log-without-server-restart-in-mysql-50/#comment-168588</guid>
		<description>Just tried out the query sniffer, it works great and is dead simple to use:

apt-get install libpcap0.8 (if needed)
curl http://iank.org/querysniffer/querysniffer-0.10.tar.gz &#124; tar xvzf -
querysniffer-0.10/mysqlsniff.x64

I like this unobtrusive way of debugging!

Cheers,
Eike</description>
		<content:encoded><![CDATA[<p>Just tried out the query sniffer, it works great and is dead simple to use:</p>
<p>apt-get install libpcap0.8 (if needed)<br />
curl <a href="http://iank.org/querysniffer/querysniffer-0.10.tar.gz" rel="nofollow">http://iank.org/querysniffer/querysniffer-0.10.tar.gz</a> | tar xvzf -<br />
querysniffer-0.10/mysqlsniff.x64</p>
<p>I like this unobtrusive way of debugging!</p>
<p>Cheers,<br />
Eike</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter</title>
		<link>http://www.mysqlperformanceblog.com/2007/09/13/enablingdisabling-query-log-without-server-restart-in-mysql-50/comment-page-1/#comment-167524</link>
		<dc:creator>peter</dc:creator>
		<pubDate>Fri, 14 Sep 2007 10:52:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2007/09/13/enablingdisabling-query-log-without-server-restart-in-mysql-50/#comment-167524</guid>
		<description>Thanks Keith,

Indeed query sniffer is another good way to approach the same problem.</description>
		<content:encoded><![CDATA[<p>Thanks Keith,</p>
<p>Indeed query sniffer is another good way to approach the same problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Keith Murphy</title>
		<link>http://www.mysqlperformanceblog.com/2007/09/13/enablingdisabling-query-log-without-server-restart-in-mysql-50/comment-page-1/#comment-167212</link>
		<dc:creator>Keith Murphy</dc:creator>
		<pubDate>Thu, 13 Sep 2007 21:02:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/2007/09/13/enablingdisabling-query-log-without-server-restart-in-mysql-50/#comment-167212</guid>
		<description>It seems that great minds think alike.  I wasn&#039;t aware of your patch.  And the proxy hadn&#039;t been released when we started working on our query sniffer program. The sniffer is a bit different in that is a perl program that uses the libpcap library.  It can be started and stopped at any time and you can direct output to a file without any problems.</description>
		<content:encoded><![CDATA[<p>It seems that great minds think alike.  I wasn&#8217;t aware of your patch.  And the proxy hadn&#8217;t been released when we started working on our query sniffer program. The sniffer is a bit different in that is a perl program that uses the libpcap library.  It can be started and stopped at any time and you can direct output to a file without any problems.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

