<?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>ServerGrove Blog &#187; MySQL</title>
	<atom:link href="http://blog.servergrove.com/tag/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.servergrove.com</link>
	<description>VPS &#38; Shared Hosting, symfony, Zend Framework, Rails, Adobe Flex, Hosting News, Web Design Tips, Webhosting and more....</description>
	<lastBuildDate>Tue, 31 Aug 2010 19:26:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Enable MySQL query logging in Zend Server CE</title>
		<link>http://blog.servergrove.com/2009/08/24/enable-mysql-query-logging-in-zend-server-ce/</link>
		<comments>http://blog.servergrove.com/2009/08/24/enable-mysql-query-logging-in-zend-server-ce/#comments</comments>
		<pubDate>Mon, 24 Aug 2009 14:39:42 +0000</pubDate>
		<dc:creator>Pablo</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[zend server]]></category>

		<guid isPermaLink="false">http://blog.servergrove.com/?p=541</guid>
		<description><![CDATA[Zend Server CE includes an installation of MySQL, which is very handy. Since Zend Server CE is used mostly to setup a quick development environment, it is very useful to view the MySQL query log, where all SQL queries are logged. To enable the query log, you need to modify the file /usr/local/zend/mysql/bin/mysql.server: Locate the [...]]]></description>
			<content:encoded><![CDATA[<p>Zend Server CE includes an installation of MySQL, which is very handy. Since Zend Server CE is used mostly to setup a quick development environment, it is very useful to view the MySQL query log, where all SQL queries are logged.</p>
<p>To enable the query log, you need to modify the file /usr/local/zend/mysql/bin/mysql.server:</p>
<ul>
<li>Locate the following line:</li>
</ul>
<pre class="brush: php">
$bindir/mysqld_safe --datadir=$datadir --pid-file=$server_pid_file $other_args &gt;/dev/null 2&gt;&amp;1 &amp;
</pre>
<ul>
<li>Modify it by adding &#8216;-l&#8217; so it looks like:</li>
</ul>
<pre class="brush: php">
$bindir/mysqld_safe -l --datadir=$datadir --pid-file=$server_pid_file $other_args &gt;/dev/null 2&gt;&amp;1 &amp;
</pre>
<p>Then, restart mysql by running:</p>
<pre class="brush: php">
/usr/local/zend/mysql/bin/mysql.server stop

/usr/local/zend/mysql/bin/mysql.server start
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.servergrove.com/2009/08/24/enable-mysql-query-logging-in-zend-server-ce/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
