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

MySQL 8.0.12 decompression version installation tutorial

This article shares the installation tutorial of ...

Native js to implement 2048 game

2048 mini game, for your reference, the specific ...

Detailed summary of web form submission methods

Let's first look at several ways to submit a ...

Vue implements small notepad function

This article example shares the specific code of ...

How to use shell to perform batch operations on multiple servers

Table of contents SSH protocol SSH Connection pro...

Introduction to root directory expansion under Linux system

1. Check Linux disk status df -lh The lsblk comma...

MySQL independent index and joint index selection

There is often a lack of understanding of multi-c...

The practical process of login status management in the vuex project

Table of contents tool: Login scenario: practice:...

JavaScript function detailed introduction

Any number of statements can be encapsulated thro...

How to use & and nohup in the background of Linux

When we work in a terminal or console, we may not...

Deeply understand how nginx achieves high performance and scalability

The overall architecture of NGINX is characterize...

SQL implements LeetCode (180. Continuous numbers)

[LeetCode] 180. Consecutive Numbers Write a SQL q...

Use render function to encapsulate highly scalable components

need: In background management, there are often d...

Implementation of docker view container log command

Why should we read the log? For example, if the c...

5 VueUse libraries that can speed up development (summary)

Table of contents What utilities does VueUse have...