# 解决mysql、mariadb提示Caused by: java.sql.SQLException: null, unblock with 'mariadb-admin flush-hosts'"

> Caused by: java.sql.SQLException: null, message from server: "Host '113.69.27.170' is blocked because of many connection…

- 原文：https://www.l2qq.com/article/164
- 发布：2021-12-07T03:48:08Z
- 作者：l2qq

---

Caused by: java.sql.SQLException: null, message from server: "Host '113.69.27.170' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts'"
原因：
突然请求了太多sql请求。
同一个ip在短时间内产生太多（超过mysql数据库max_connection_errors的最大值）中断的数据库连接而导致的阻塞；
解决办法：
进入maridb command
输入命令：命令如下：**flush hosts;**
