遇到这么一个错误如下
Host 'XXXXXX' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'

怎么办,只好照提示来了。
执行mysqladmin flush-hosts

再次报错

mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'ODBC'@'localhost' (using password: NO)'

改mysqladmin flush-hosts -u root -p

输入password
成功解决问题!