Three steps to solve MySQL error ERROR 1129 Host 'XXX.XXX' is blocked because of many connection errors;

Qin medicine is like poison, and there is no cure.

Without further ado, before going directly to the topic, let me first confirm a very serious question with you:

Did you find a lot of information on the Internet because of this problem, and then used this line of command:

show variables like "max_connection_errors"

Did it turn out that it was completely useless? !

If so, that’s right! Because there is something wrong with this order itself! ! !

Don't ask me how I know...forget it, let's get started!

Problem description : Error reported when connecting to mysql : ERROR 1129 Host 'XXX.XXX' is blocked because of many connection errors

 I will provide you with the simplest method, which is simple, crude, and easy to understand.

There are three steps in total , and they are effective through personal testing.

Step 1 : Find the mysq server you need to connect to (if you are connecting to your own local, the next step is to modify your own. If you are connecting to someone else, the next step is to modify the other party's)

Step 2 : Create a new query and execute the command show variables like '%max_connect_errors%' (the default value found is generally 100, which refers to the maximum value of your connection errors)
show variables like '%max_connect_errors%'

 Step 3 : Execute the command : set global max_connect_errors = 1000 and change the maximum value to 1000 (this method treats the symptoms but not the root cause and is limited to temporary use. Changing it too much can easily lead to security problems, so set the value Think twice about size)

set global max_connect_errors = 1000

After modification, re-execute the second step. At this time, you can see that it has been modified to 1000.

 Finally, let's take a look at the results:

Got it done, I searched online for a long time, and I almost lost my life trying to find the solution, but after 8 hours of torture, I finally determined the problem——

Maybe it’s because most of the information on the Internet was summarized by them by referring to each other, and all of them were wrong ...

Grass! (a plant).

 "This chapter is temporarily over, scatter flowers"

Guess you like

Origin blog.csdn.net/weixin_69687927/article/details/132427881