<?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>Maxi GEN TR &#187; mysql-slow</title>
	<atom:link href="http://www.maxi.gen.tr/tag/mysql-slow/feed" rel="self" type="application/rss+xml" />
	<link>http://www.maxi.gen.tr</link>
	<description>ki$isel bir weBlog</description>
	<lastBuildDate>Tue, 31 Jan 2012 12:06:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>MySQL Query Log tutmayı aktif etme</title>
		<link>http://www.maxi.gen.tr/mysql-query-log-tutmayi-aktif-etme.html</link>
		<comments>http://www.maxi.gen.tr/mysql-query-log-tutmayi-aktif-etme.html#comments</comments>
		<pubDate>Sun, 16 Aug 2009 18:40:47 +0000</pubDate>
		<dc:creator>Sinan SEN</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[MySQL Query Log]]></category>
		<category><![CDATA[mysql-slow]]></category>

		<guid isPermaLink="false">http://www.maxi.gen.tr/?p=117</guid>
		<description><![CDATA[One of the built-in tools in MySQL that you can use in optimizing your database is the &#8220;slow-query-logging&#8221; feature. This feature allows you to log slow running queries to a log file. By default, this feature is not enabled on your VPS and you will need to add a couple of lines in your &#8220;/etc/my.cnf&#8221; [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><span><span>One of the built-in tools in MySQL that you can use in optimizing your database is the &#8220;slow-query-logging&#8221; feature. This feature allows you to log slow running queries to a log file. By default, this feature is not enabled on your VPS and you will need to add a couple of lines in your <span style="color: #0000ff; font-family: courier new,courier,monospace;">&#8220;/etc/my.cnf&#8221;</span> file (in the [mysqld] section) which I have stated below:</span></span></p>
<p><span></p>
<div style="margin-left: 40px; color: #000099;"><span style="color: #0000ff;"><span style="font-family: courier new,courier,monospace;"> log-slow-queries = /var/log/mysql-slow.log </span></span><br style="font-family: courier new,courier,monospace; color: #0000ff;" /><span style="color: #0000ff;"><span style="font-family: courier new,courier,monospace;"> long_query_time = 5</span></span></div>
<p><span><br />
The statements above will log queries taking longer than five second to the specified log file (<span style="font-family: courier new,courier,monospace; color: #0000ff;">/var/log/mysql-slow.log</span>).  Once finished editing your <span style="font-family: courier new,courier,monospace; color: #0000ff;">my.cnf</span> file, restart MySQL by executing the command below:</p>
<p></span></p>
<div style="margin-left: 40px;"><span style="font-family: courier new,courier,monospace; color: #0000ff;">service mysqld restart</span></div>
<p><span> </span></span></p>
<div class="shr-publisher-117"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:right;height:30px;'><a class='shareaholic-fblike' data-shr_layout='standard' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.maxi.gen.tr%2Fmysql-query-log-tutmayi-aktif-etme.html' data-shr_title='MySQL+Query+Log+tutmay%C4%B1+aktif+etme'></a><a class='shareaholic-googleplusone' data-shr_size='standard' data-shr_count='false' data-shr_href='http%3A%2F%2Fwww.maxi.gen.tr%2Fmysql-query-log-tutmayi-aktif-etme.html' data-shr_title='MySQL+Query+Log+tutmay%C4%B1+aktif+etme'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.maxi.gen.tr/mysql-query-log-tutmayi-aktif-etme.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

