Tutorial fix mysqladmin flush-hosts error in Linux.
In this article, we want to look at how to fix mysqladmin flush-hosts error in Linux.
If you encounter the following error in the Linux VPS server:
Host 'hostname' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'
To fix this, you need to check the value set for “max_connect_errors” in the “my.cnf” file.For this purpose, follow the steps below:
Enter the “my.cnf” file with the following command:
Then set “max_connect_errors” as follows:
If “max_connect_errors” does not exist in the “my.cnf” file, Add the following lines to the beginning of the file and save them:
If you have any questions or problems, you can ask the Ask system to provide guidance.