最新文章专题视频专题问答1问答10问答100问答1000问答2000关键字专题1关键字专题50关键字专题500关键字专题1500TAG最新视频文章推荐1 推荐3 推荐5 推荐7 推荐9 推荐11 推荐13 推荐15 推荐17 推荐19 推荐21 推荐23 推荐25 推荐27 推荐29 推荐31 推荐33 推荐35 推荐37视频文章20视频文章30视频文章40视频文章50视频文章60 视频文章70视频文章80视频文章90视频文章100视频文章120视频文章140 视频2关键字专题关键字专题tag2tag3文章专题文章专题2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章专题3
当前位置: 首页 - 科技 - 知识百科 - 正文

mysql错误号码1129解决方法

来源:动视网 责编:小采 时间:2020-11-09 06:56:54
文档

mysql错误号码1129解决方法

mysql错误号码1129解决方法:SQLyog连接mysql 错误号码1129: mysql error 1129: Host 'bio.chip.org' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'。 解决方法: cmd命令行: mysqlad
推荐度:
导读mysql错误号码1129解决方法:SQLyog连接mysql 错误号码1129: mysql error 1129: Host 'bio.chip.org' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'。 解决方法: cmd命令行: mysqlad


SQLyog连接mysql 错误号码1129:

mysql error 1129: Host 'bio.chip.org' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'。

解决方法:

cmd命令行:

mysqladmin flush-host -h 127.0.0.1 -u root -p123456

解决。

扩展学习

错误:Host is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'

原因:

同一个ip在短时间内产生太多(超过mysql数据库max_connection_errors的最大值)中断的数据库连接而导致的阻塞;

解决方法:

1、提高允许的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%';

2、使用mysqladmin flush-hosts 命令清理一下hosts文件(不知道mysqladmin在哪个目录下可以使用命令查找:whereis mysqladmin);

① 在查找到的目录下使用命令修改:/usr/bin/mysqladmin flush-hosts -h192.168.1.1 -P3308 -uroot -prootpwd;

备注:

其中端口号,用户名,密码都可以根据需要来添加和修改;

配置有master/slave主从数据库的要把主库和从库都修改一遍的(我就吃了这个亏明明很容易的几条命令结果折腾了大半天);

第二步也可以在数据库中进行,命令如下:flush hosts;

大多数的百度结果都是这样,但是对于我的数据库连接还是不行,经多次验证,发现需要加上主机地址,即执行:mysqladmin flush-hosts -h 127.0.0.1 -uroot -p命令

文档

mysql错误号码1129解决方法

mysql错误号码1129解决方法:SQLyog连接mysql 错误号码1129: mysql error 1129: Host 'bio.chip.org' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'。 解决方法: cmd命令行: mysqlad
推荐度:
  • 热门焦点

最新推荐

猜你喜欢

热门推荐

专题
Top