Resolves the MySQL error:host is blocked because of many connection errors issues

Source: Internet
Author: User

# mysqladmin Flush-hosts

Now we go into the MySQL editor my.cnf

# VI/ETC/MY.CNF

Then add in the inside

max_connect_errors=10000

# Service Mysqld Restart

Then restart the MySQL database server, if you do not have the server permissions we can use the command mode to set

# mysql-uroot-p
# mysql> SET GLOBAL max_connect_errors=10000;

In fact, this method is not the root of the solution we can try to set the MySQL connection wait when the long wait_timeout settings also in my.cnf to find an increase wait_timeout= 5; This 5 is a second OH.

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.