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.
Host is blocked because of many connection errorsmysqladmin flush-hosts 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_errorstoo low
⚡ Quick fix
- Run
mysqladmin flush-hostsorFLUSH HOSTS; - Raise
max_connect_errors - Use proper health checks (mysqladmin ping)
Detailed fix by platform
Shell
mysqladmin -u root -p flush-hosts
my.cnf
max_connect_errors = 100000then restart
How to diagnose
- Host — Which client IP?
- Source — Health check probes?
- 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:
Similar errors
Most viewed in MySQL
Other ways to find it
Where this error sits
Origin: Data. Errors that are often confused with or caused by this one (click to open):
🧠 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.
Report a correction or suggest an improvement
Last updated 2 Dec 2026