Skip to content

Blocked hosts

When trying to connect to a MySQL instance, a user might get this error:

SQLSTATE[00000] [1129] Host 'XXXX.cern.ch' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts']

There may reasons for this error (please read https://dev.mysql.com/doc/refman/8.0/en/communication-errors.html), the most frequent ones:

  • Many errors coming from the same IP: wrong password
  • Network glitches that increase wrong connections counter

Possible solutions: