How to fix mariadb-admin flush-hosts / mysqladmin flush-hosts Issues?

How to fix mariadb-admin flush-hosts / mysqladmin flush-hosts Issues?

Error  :  Host 'xxx.xxx.xxx.xxx' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts' / 'mariadb-admin flush-hosts'

Root cause :

The issue occurs when the number of connection errors from a host exceeds the server variable:
  1. max_connect_errors


Step 1: Run the flush-hosts command in the Database server

For MariaDB:

  1. mariadb-admin -u root -p flush-hosts

For MySQL:

  1. mysqladmin -u root -p flush-hosts

                  New to ADSelfService Plus?