<?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>Query Log &#8211; Hostry Help Center</title>
	<atom:link href="https://help.hostry.com/article-tags/query-log/feed/" rel="self" type="application/rss+xml" />
	<link>https://help.hostry.com</link>
	<description>Full information on how to use HOSTRY, provided by 24/7 community based support</description>
	<lastBuildDate>Tue, 28 Apr 2020 09:58:38 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.9.12</generator>

<image>
	<url>https://help.hostry.com/wp-content/uploads/cache/2021/01/cropped-apple-icon-180x180-1/836712163.png</url>
	<title>Query Log &#8211; Hostry Help Center</title>
	<link>https://help.hostry.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How To Enable The General MySQL Query Log on Linux</title>
		<link>https://help.hostry.com/knowledge-base/how-to-enable-the-general-mysql-query-log-on-linux/</link>
					<comments>https://help.hostry.com/knowledge-base/how-to-enable-the-general-mysql-query-log-on-linux/#respond</comments>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Tue, 28 Apr 2020 09:58:37 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=1653</guid>

					<description><![CDATA[There are two potential possibilities to accomplish this: 1. Add to my.cnf file permanently or 2. include general queries for MySQL on versions higher than 5.1.29 1. Add to my.cnf file forever vim /etc/my.cnf log = /home/general-query.log Install via MySQL Console SET general_log = 1; Start server systemctl restart mysqld [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>There are two potential possibilities to accomplish this: 1. Add to my.cnf file permanently or 2. include general queries for MySQL on versions higher than 5.1.29 </p>



<h2 id="1-add-to-my-cnf-file-forever" >1. Add to my.cnf file forever</h2>



<pre class="wp-block-preformatted">vim /etc/my.cnf 
log = /home/general-query.log</pre>



<p>Install via MySQL Console</p>



<pre class="wp-block-preformatted">SET general_log = 1;</pre>



<p>Start server</p>



<pre class="wp-block-preformatted">systemctl restart mysqld</pre>



<h2 id="2-add-to-my-cnf-file-permanently-or-include-general-queries-for-mysql-on-versions-higher-than-5-1-29" >2. Add to my.cnf file permanently or include general queries for MySQL on versions higher than 5.1.29</h2>



<pre class="wp-block-preformatted">general_log_file = /path/to/general-query.log

general_log = 1</pre>



<p>Install via MySQL Console</p>



<pre class="wp-block-preformatted">SET general_query_log = 1;</pre>



<p>Then create the general-query.log file in which you want to store these logs</p>



<pre class="wp-block-preformatted">touch general-query.log

chown -R mysql:mysql general-query.log

systemctl restart mysqld</pre>



<p>Done! You have now successfully enabled the general MySQL query log on Linux. </p>



<p></p>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/how-to-enable-the-general-mysql-query-log-on-linux/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
