An error occurred in MySQL.

Source: Internet
Author: User

18.2.3 host '...' is blocked Error
If you get an error like this:

Host 'hostname' is blocked because of specified connection errors.

Unblock with 'mysqladmin flush-hosts'

This means that mysqld has obtained a large number of connection requests that are interrupted in the middle of the host 'hostname' (max_connect_errors. After max_connect_errors failed requests, mysqld identified an error (like a hacker attack) and blocked the site from further connection until someone executed the command mysqladmin flush-hosts.

By default, mysqld blocks a host after 10 connection errors. You can easily adjust the server by starting it like this:

Shell> safe_mysqld-O max_connect_errors = 10000 &

Note: If you get this error message for a given host, you should first check whether the TCP/IP connection of the host is correct. If your TCP/IP connection is not running, adding the max_connect_errors variable value will not help you!

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.