报错如下
message from server: “Host ‘xxx’ is blocked because of many connection errors; unblock with ‘mysqladmin flush-hosts’”

解决方法如下

1:登录mysql控制台:mysql -uroot -p
2:flush hosts