mysql error number 1129 solution

mysql error number 1129 solution

SQLyog connects to mysql error number 1129:

mysql error 1129: Host 'bio.chip.org' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'.

Solution:

cmd command line:

mysqladmin flush-host -h 127.0.0.1 -u root -p123456

solve.

Extended Learning

Error: Host is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'

reason:

The same IP generates too many interrupted database connections (exceeding the maximum value of max_connection_errors of MySQL database) in a short period of time, causing blocking;

Solution:

1. Increase the number of max_connection_errors allowed (only treats the symptoms but not the root cause):

① Enter the Mysql database to view max_connection_errors: show variables like '%max_connection_errors%';

② Change the number of max_connection_errors to 1000: set global max_connect_errors = 1000;

③ Check whether the modification is successful: show variables like '%max_connection_errors%';

2. Use the mysqladmin flush-hosts command to clean up the hosts file (if you don't know which directory mysqladmin is in, you can use the command: whereis mysqladmin to find it);

① Use the command to modify in the found directory: /usr/bin/mysqladmin flush-hosts -h192.168.1.1 -P3308 -uroot -prootpwd;

Remark:

The port number, user name, and password can be added and modified as needed;

If you have configured a master/slave database, you need to modify both the master and slave databases (I suffered this loss. It took me half a day to finish a few simple commands).

The second step can also be performed in the database, the command is as follows: flush hosts;

Most of the Baidu results are like this, but it still doesn't work for my database connection. After multiple verifications, I found that I needed to add the host address, that is, execute: mysqladmin flush-hosts -h 127.0.0.1 -uroot -p command

The above are the detailed methods and steps for this solution. Thank you for your support of 123WORDPRESS.COM.

<<:  VMware ESXi 6.0 and deployment of virtual machine installation tutorial (picture and text)

>>:  Mini Program natively implements left-slide drawer menu

Recommend

Do you know the weird things in Javascript?

Our veteran predecessors have written countless c...

SQL implementation of LeetCode (181. Employees earn more than managers)

[LeetCode] 181.Employees Earning More Than Their ...

Detailed explanation of SSH password-free login configuration under Linux

Assume there are two Linux servers A and B, and w...

How to implement Docker container self-start

Container auto-start Docker provides a restart po...

HTML Tutorial: Unordered List

<br />Original text: http://andymao.com/andy...

Interpreting MySQL client and server protocols

Table of contents MySQL Client/Server Protocol If...

mysql5.6.8 source code installation process

Kernel: [root@opop ~]# cat /etc/centos-release Ce...

Detailed Example of MySQL curdate() Function

MySQL CURDATE Function Introduction If used in a ...

Detailed explanation of how to use the vue3 Teleport instant movement function

The use of vue3 Teleport instant movement functio...

Detailed tutorial on installing mysql 5.7.26 on centOS7.4

MariaDB is installed by default in CentOS, which ...

Encoding problems and solutions when mysql associates two tables

When Mysql associates two tables, an error messag...

How to remotely log in to the MySql database?

Introduction: Sometimes, in order to develop a pr...

Detailed explanation of the loop form item example in Vue

Sometimes we may encounter such a requirement, th...