FIX: MySQL is blocked because of many connection errors;

Source: Internet
Author: User

Environment: CentOS 6.5,mysql 5.6.19

Problem:

Error when using Telnet to l0.0.1.120 3306 database

KHost ' l0.0.1.120 ' is blocked because of many connection errors; Unblock with ' mysqladmin flush-hosts ' Connection closed by foreign host.


Cause: The connection errors of the same IP exceeds the default maximum value.

Workaround 1:

Restart the MySQL service.

Workaround 2:

MySQL console from the command line

flush hosts;.


Workaround 3:

Modify the default number of max_connect_errors connections (MySQL 5.6 or above default is 100)

Show default number of connections: show variables like '%max_connect_errors% ';

Modify the number of connections:set Global max_connect_errors = 500; (Basically the same IP cannot exceed

Flush privileges;

Service MySQL Restart



This article is from "Happy Fish" blog, please make sure to keep this source http://01000.blog.51cto.com/2410614/1564528

FIX: MySQL is blocked because of many connection errors;

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.