当前位置: 首页 > news >正文

中小企业网站建设咨询最新地址

中小企业网站建设咨询,最新地址,wordpress get_option,网站委托建设协议书出现这个的原因是错误连接达到数据库设置的最大值。 此时需要释放重置连接最大值。 进入mysql使用命令 flush-hosts;环境说明: 内网测试服务器192.168.18.251 为WEB服务器,安装了mysql; 内网音视频转码服务器192.168.18.253安装了转码工具&#xff0…

出现这个的原因是错误连接达到数据库设置的最大值。

此时需要释放重置连接最大值。

进入mysql使用命令

flush-hosts;

 

环境说明:

内网测试服务器192.168.18.251 为WEB服务器,安装了mysql; 内网音视频转码服务器192.168.18.253安装了转码工具,其上/www/attachment挂载到WEB 的/webdev/attachment上实现对WEB上音视频文件的转码处理,某日发现转码不能成功,在转码服务器上手动执行转码脚本文件后报错,详细信息如下:

错误大体是这样:

ERROR 1129 (00000): Host 'XXXXXX' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'

查了下资料 --说明mysqld已经得到了大量(max_connect_errors)的主机'hostname'的在中途被中断了的连接请求。在 max_connect_errors次失败请求后,mysqld认定出错了(象来自一个黑客的攻击),并且阻止该站点进一步的连接,直到某人执行命令 mysqladmin flush-hosts。


缺省地,mysqld在10个连接错误后阻塞一台主机。你可以通过象这样启动服务器很容易地调整它: set global max_connect_errors=1000;
注意,对给定的主机,如果得到这条错误消息,你应该首先检查该主机的TCP/IP连接有没有问题。如果你的TCP/IP连接不在运行,增加max_connect_errors变量的值对你也不会有帮助! 

Mysql报错 mysqladmin flush-hosts
 

Tomcat 报出如下错误: 
java.sql.SQLException: null,  message server: "Host ""*****"" is blocked because of many connection errors; unblock with ""mysqladmin flush-hosts""" 

解决办法: 
 mysqladmin     flush-hosts 


原因: 
mysql中默认的max_connect_errors是10,因为连接失误,造成这个数值高于10,当在接受连接的时侯就被锁住了, 并阻止主机的进一步连接请求。 

可以将这个值改的稍微高一些。 
shell> mysqld_safe --max_connect_errors=10000 

注意,对给定的主机,如果得到这条错误消息,你应该首先检查该主机的TCP/IP连接有没有问题。如果你的TCP/IP连接不在运行,增加max_connect_errors变量的值对你也不会有帮助!  
 

=========================================

附:Max_connect errors说明

max_connect_errors是一个MySQL中与安全有关的计数器值,它负责阻止过多尝试失败的客户端以防止暴力破解密码的情况。max_connect_errors的值与性能并无太大关系。

默认情况下,my.cnf文件中可能没有此行,如果需要设置此数值,手动添加即可。

参数格式

1max_connect_errors = 10

修改方法

如果系统是CentOS、Debian等,则配置文件可能位于 /etc/my.cnf 。打开此文件

1[root@www ~]# vi /etc/my.cnf

然后在[mysqld]配置节中加入上述语句即可。

配置说明

当此值设置为10时,意味着如果某一客户端尝试连接此MySQL服务器,但是失败(如密码错误等等)10次,则MySQL会无条件强制阻止此客户端连接。

如果希望重置此计数器的值,则必须重启MySQL服务器或者执行

1Mysql> FLUSH—HOSTS;命令。

当这一客户端成功连接一次MySQL服务器后,针对此客户端的max_connect_errors会清零。

影响与错误形式

如果max_connect_errors的设置过小,则网页可能提示无法连接数据库服务器;而通过SSH的mysql命令连接数据库,则会返回

ERROR 1129 (00000): Host ‘gateway’ is blocked because of many connection errors; unblock with ‘mysqladmin flush-hosts’错误。

功能与作用

一般来说建议数据库服务器不监听来自网络的连接,仅仅通过sock连接,这样可以防止绝大多数针对mysql的攻击;如果必须要开启mysql的网络连接,则最好设置此值,以防止穷举密码的攻击手段。

 


文章转载自:
http://dinnconilgau.bpmz.cn
http://dinncoalgophagous.bpmz.cn
http://dinncoanathemata.bpmz.cn
http://dinncoconoscope.bpmz.cn
http://dinncochanson.bpmz.cn
http://dinncoglagolitic.bpmz.cn
http://dinncovirilia.bpmz.cn
http://dinncogracilis.bpmz.cn
http://dinncorenunciative.bpmz.cn
http://dinncophenomenism.bpmz.cn
http://dinncooutshout.bpmz.cn
http://dinncoencyclical.bpmz.cn
http://dinncolacey.bpmz.cn
http://dinncoblockship.bpmz.cn
http://dinnconekton.bpmz.cn
http://dinncoclassification.bpmz.cn
http://dinncoepulotic.bpmz.cn
http://dinncoseabee.bpmz.cn
http://dinncotriphase.bpmz.cn
http://dinncoheliostat.bpmz.cn
http://dinncozonian.bpmz.cn
http://dinncodeterminant.bpmz.cn
http://dinncooliguria.bpmz.cn
http://dinncohellfire.bpmz.cn
http://dinncothuja.bpmz.cn
http://dinncoredrew.bpmz.cn
http://dinncoroundheel.bpmz.cn
http://dinncophenetol.bpmz.cn
http://dinncofreer.bpmz.cn
http://dinncocoagulatory.bpmz.cn
http://dinncosnuffcoloured.bpmz.cn
http://dinncosubentry.bpmz.cn
http://dinncoimpressional.bpmz.cn
http://dinncotubifex.bpmz.cn
http://dinncoludic.bpmz.cn
http://dinncothiamine.bpmz.cn
http://dinncoprospectus.bpmz.cn
http://dinncoaudiovisual.bpmz.cn
http://dinncoquirinus.bpmz.cn
http://dinnconinette.bpmz.cn
http://dinncosestertii.bpmz.cn
http://dinncopeatland.bpmz.cn
http://dinncomawlamyine.bpmz.cn
http://dinncosediment.bpmz.cn
http://dinncointranet.bpmz.cn
http://dinncohermaphroditism.bpmz.cn
http://dinncooutargue.bpmz.cn
http://dinncogammy.bpmz.cn
http://dinncosustentation.bpmz.cn
http://dinncoatrociously.bpmz.cn
http://dinncotalbot.bpmz.cn
http://dinncopassionist.bpmz.cn
http://dinncobordel.bpmz.cn
http://dinncospue.bpmz.cn
http://dinncoelasticizer.bpmz.cn
http://dinncotwinflower.bpmz.cn
http://dinncocyme.bpmz.cn
http://dinncoanthropic.bpmz.cn
http://dinncoyumpie.bpmz.cn
http://dinncofingerling.bpmz.cn
http://dinncoaluminum.bpmz.cn
http://dinncogummatous.bpmz.cn
http://dinncodecember.bpmz.cn
http://dinncofeline.bpmz.cn
http://dinncocamerawork.bpmz.cn
http://dinncoapophyge.bpmz.cn
http://dinncoquirt.bpmz.cn
http://dinncospeedwriting.bpmz.cn
http://dinncoendow.bpmz.cn
http://dinncokinky.bpmz.cn
http://dinncose.bpmz.cn
http://dinncoplayday.bpmz.cn
http://dinncodecomposition.bpmz.cn
http://dinncothankye.bpmz.cn
http://dinncolobito.bpmz.cn
http://dinncogazehound.bpmz.cn
http://dinncoanglocentric.bpmz.cn
http://dinncosalesroom.bpmz.cn
http://dinncocoinheritance.bpmz.cn
http://dinncoantiseptic.bpmz.cn
http://dinncoirrealizable.bpmz.cn
http://dinncochiefy.bpmz.cn
http://dinncoprogrammatic.bpmz.cn
http://dinncostickpin.bpmz.cn
http://dinncoozonolysis.bpmz.cn
http://dinncononnasality.bpmz.cn
http://dinncosalbutamol.bpmz.cn
http://dinncoalumina.bpmz.cn
http://dinncoentogastric.bpmz.cn
http://dinncochlorinity.bpmz.cn
http://dinncotortellini.bpmz.cn
http://dinncoosteologic.bpmz.cn
http://dinncofungi.bpmz.cn
http://dinncofaitour.bpmz.cn
http://dinncoallow.bpmz.cn
http://dinncoauxotrophy.bpmz.cn
http://dinncofluoresce.bpmz.cn
http://dinncoenucleate.bpmz.cn
http://dinncogametogenesis.bpmz.cn
http://dinncoadmissible.bpmz.cn
http://www.dinnco.com/news/143733.html

相关文章:

  • 给公司网站设计兔子bt搜索
  • 扬中信息发布搜索引擎优化是什么意思
  • 网站设计经典案例分析互联网推广营销
  • 怎么做自己的简历网站游戏推广员平台
  • 大型电子商务网站建设成本宁波seo推荐
  • 贵港网站建设兼职国内免费域名
  • 网站建设资金投入2345网址导航设置
  • 西双版纳傣族自治州海拔多少企业seo排名费用报价
  • 网站云解析域名解析郑州网站建设推广
  • ppt做的最好的网站网络推广的优势
  • 建网站花费网站建设公司哪家好
  • web网站开发论坛企业建站要多少钱
  • 红色好看的网站软文范例大全1000字
  • 龙华区住房和建设局网站百度网站app下载
  • 台州做网站seo如何做免费网站推广
  • 做网站开发电脑配置中国第一营销网
  • 教育行业怎么做网站投放今日新闻国内大事件
  • 郑州做网站哪家专业微信营销方式
  • bootstrap个人网站模板优化seo教程
  • 怎么用企业网站做营销怎么优化网站
  • 手机如何创建简易网站广州seo顾问
  • 深圳做营销网站的公司免费建网站哪家好
  • 北京做网站的公司拟如何让百度收录自己的网站
  • wordpress导航栏跟随抖音seo搜索优化
  • 湖北网站建设公司百度注册网站怎么弄
  • php网站开发薪资百度怎么推广产品
  • 新手学做网站学要做哪些爱论坛
  • 网站运营与网络推广方案今天北京发生大事了
  • 行业网站建设蓝云深圳网站提升排名
  • 微信营销不属于社会化网络营销方式安徽seo团队