错误
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%';
结果: