MySQL:刷新主机
Sometimes, MySQL throws an error like this: Host ‘…’ is blocked because of many connection errors Unblock with ‘mysqladmin flush-hosts’ This typically means that MySQL has blocked a host after...
MySQL因连接错误过多而阻止主机,可以通过执行`mysqladmin flush-hosts`或`TRUNCATE TABLE performance_schema.host_cache`来解决。主机被阻止是因为连接错误超过`max_connect_errors`设置,可以通过调整该变量来管理连接错误计数。使用`skip-name-resolve`可以避免DNS解析,从而防止主机被阻止。
