<?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>TuXHaT&#187; MySQL Archives  &#8211; Blog Title</title>
	<atom:link href="http://www.tuxhat.com/category/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tuxhat.com</link>
	<description>Linux / sysadmin / Debian / Ubuntu / Red Hat / Centos</description>
	<lastBuildDate>Tue, 13 Oct 2009 07:25:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Host  is blocked because of many connection errors in MySQL</title>
		<link>http://www.tuxhat.com/mysql/host-is-blocked-because-of-connection-errors-mysql/</link>
		<comments>http://www.tuxhat.com/mysql/host-is-blocked-because-of-connection-errors-mysql/#comments</comments>
		<pubDate>Thu, 12 Mar 2009 08:58:56 +0000</pubDate>
		<dc:creator>tux</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[mysqladmin]]></category>

		<guid isPermaLink="false">http://www.tuxhat.com/?p=22</guid>
		<description><![CDATA[Host  is blocked because of many connection errors in MySQL]]></description>
			<content:encoded><![CDATA[<p>Error:</p>
<p>&#8220;Host &#8216;xxx.xxx.xxx.xxx&#8217; is blocked because of many connection errors; unblock with &#8216;mysqladmin flush-hosts&#8217;Connection closed by foreign host.&#8221;</p>
<p>If you get the above error for a genuine client connection to the MySQL server. You should consider to increase the MySQL variable &#8216;max_connect_errors&#8217; which is 10 by default.</p>
<p>If you can afford to restart the MySQL server, enter below to your my.cnf and restart the MySQL service.</p>
<p>[mysqld]</p>
<p>max_connect_errors = 1000</p>
<p>If you can&#8217;t afford to restart the MySQL server, follow below steps.</p>
<p>In MySQL pormpt,</p>
<p>show variables like &#8216;%error%&#8217; ;</p>
<p>+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;-+<br />
| Variable_name      | Value |<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;-+<br />
| log_error          |       |<br />
| max_connect_errors | 10  |<br />
| max_error_count    | 64    |<br />
| slave_skip_errors  | OFF   |<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;-+</p>
<p>set global max_connect_errors = 1000 ;</p>
<p>show variables like &#8216;%error%&#8217; ;</p>
<p>+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;-+<br />
| Variable_name      | Value |<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;-+<br />
| log_error          |       |<br />
| max_connect_errors | 1000  |<br />
| max_error_count    | 64    |<br />
| slave_skip_errors  | OFF   |<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;-+</p>
<p>That&#8217;s it <img src='http://www.tuxhat.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.tuxhat.com/mysql/host-is-blocked-because-of-connection-errors-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
