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

**Code:** `1129` · **Category:** MySQL · **Seen on:** MySQL

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

## 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?

---
Source: [WhatIsMyError](https://whatismyerror.com/errors/mysql/1129-host-blocked-max-connect-errors)
