How to solve the MySQL problem -- Host host_name is blocked

Source: Internet
Author: User

By default, mysqld shields the host after 10 connection errors. You can adjust the value by starting the server as follows:

If the following error occurs, mysqld has received many connection requests from the host "host_name", but the host is interrupted.


Host host_name is blocked due to many connection errors.

You can use mysqladmin flush-hosts to unblock it.

The number of allowed connection interruption requests is determined by the value of the max_connect_errors system variable. When the number of connection requests exceeds the value specified by max_connect_errors, mysqld considers an error (for example, someone is attempting to insert) and shields further connection requests from the host, until the mysqladmin flush-hosts command is executed or the flush hosts statement is issued.

By default, mysqld shields the host after 10 connection errors. You can adjust the value by starting the server as follows:


Shell> mysqld_safe -- max_connect_errors = 10000 &

If this error occurs on the specified host, check whether the TCP/IP connection of the host is correct. Adding the value of the max_connect_errors variable is not advantageous if there is a network problem.

Related Article

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.