您的位置:首页 > 数据库 > MySQL

Mysql常见问题

2016-04-25 10:37 447 查看
1、MySql
Host is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts' 解决方法

      执行命令:mysqladmin -uroot -p*** flush-hosts

   (不知道mysqladmin在哪个目录下可以使用命令查找:whereis
mysqladmin


2、提高允许的max_connection_errors数量(治标不治本):

  ① 进入Mysql数据库查看max_connection_errors: show variables like '%max_connection_errors%';

    ② 修改max_connection_errors的数量为1000: set global max_connect_errors = 1000;

  ③ 查看是否修改成功:show variables like '%max_connection_errors%';
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: