1129 MySQL Origin: Data OSI layer 7 · Application Last updated 2 Dec 2026

ERROR 1129 (HY000): Host 'x' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'

MySQL blocked a client host after too many interrupted connection attempts.

Exact message you may see Host is blocked because of many connection errorsmysqladmin flush-hosts
Seen on: MySQL

Meaning

When a host exceeds max_connect_errors aborted handshakes (monitoring probes, port scans, load balancer health checks), the server refuses it until hosts are flushed.

Common causes

  • Load balancer or monitoring TCP health checks opening and closing connections
  • Port scanners
  • Network problems causing aborted handshakes
  • max_connect_errors too low

⚡ Quick fix

  1. Run mysqladmin flush-hosts or FLUSH HOSTS;
  2. Raise max_connect_errors
  3. Use proper health checks (mysqladmin ping)

Detailed fix by platform

Shell

  1. mysqladmin -u root -p flush-hosts

my.cnf

  1. max_connect_errors = 100000 then restart

How to diagnose

  1. Host — Which client IP?
  2. Source — Health check probes?
  3. Setting — max_connect_errors?

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: Data. Errors that are often confused with or caused by this one (click to open):

1040 — MySQL ERROR 1040 (08004): Too many connections (MySQL)10401130 — MySQL ERROR 1130 (HY000): Host 'x' is not allowed to connect to this MySQL server (MySQL)113015281 — SQL Server Msg 15281: SQL Server blocked access to procedure 'sys.xp_cmdshell' (component 'xp_cmdshell' turned off) (SQL)152812003 — MySQL ERROR 2003 (HY000): Can't connect to MySQL server on 'host:3306' (111) (MySQL)2003avc: denied — SELinux is preventing ... / avc: denied { read } for pid=... (permission denied despite correct permissions) (Linux)avc: deniedNO_PUBKEY — The following signatures couldn't be verified because the public key is not available: NO_PUBKEY (Linux)NO_PUBKEYORA-00018 — ORA-00018: maximum number of sessions exceeded (SQL)ORA-00018ORA-00020 — ORA-00020: maximum number of processes (150) exceeded (SQL)ORA-000201129

Explore the map of this error Full error map →

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.