Troubleshooting of connection failure of a network-based MySQL database

Source: Internet
Author: User

After receiving a call from the customer, the customer said that a software I made (downloaded data from the MySQL database of the public network host) prompts "unable to connect to the network database", but it is normal to copy the software from the Organization and use it. This situation has also been encountered before. The main problem is that the user IP address is blocked.

The information found on the network is as follows:

========================================================== ====================================

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

This means that mysqld has obtained a large number of connection requests (max_connect_errors) with the host ''hostname'' interrupted in the middle. After the max_connect_errors failed request, mysqld determined that an error occurred (this is considered an attack from a hacker), so it blocked the site from further connection until the command mysqladmin was executed.
Flush-hosts.

By default, mysqld blocks a host after 10 connection errors. You can adjust it using the following code:

Shell> safe_mysqld-O max_connect_errors = 10000

========================================================== ====================================

It's easier for me to handle it. Restart MySQL directly!

ZZ: http://blog.csdn.net/zhourongbiao/archive/2006/08/03/1014298.aspx

 

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.