mysql连接数过低报错

错误

java.sql.SQLException: null,  message from server: "Host '43.136.xx.xx' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'"


解决

1.服务器上进入mysql

mysql -uroot -p

2.输入mysql的密码

宝塔获取方式


3.设置大一点的连接数

set global max_connect_errors=1000;

4.查看设置结果

show global variables like '%max_connect_errors%';

结果:


©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容