关于最近Error establishing a database connection的问题

angel-cover

话说好长的标题啊= =

最近茶馆总是出现Error establishing a database connection的错误,至少在我访问的时候几乎一天一次的频率.

所以今天就研究了一下,不过还是没发现原因是什么.故求高人指点~

首先再出现问题之后,我登陆bluehost的后台发现无法检测到数据库,上网搜了一下说是由于服务器的某些原因,导致数据库断开连接.

但这几天都这样也太频繁了点吧?

然后一般等半个小时左右就有恢复正常了,现在怀疑是插件的原因,所以禁用了一些插件,过几天再看看效果吧~

刚才检查数据库的时候发现这个提示,有谁明白这个是啥意思吗?

The number of records for InnoDB tables is not correct.

phpMyAdmin uses a quick method to get the row count, and this method only returns an approximate count in the case of InnoDB tables. See $cfg['MaxExactCount'] for a way to modify those results, but this could have a serious impact on performance.

最后如果谁知道这个是怎么回事的话,请留言告知一下,不胜感激~

  1. Hartigan Jun 25th, 2010 @ 18:47 | #31 Internet Explorer 6.0Windows XP

    :cry: 好吧,我承认我是来看天使的 – -

  2. 最爱芒果 Jun 25th, 2010 @ 19:03 | #32 Firefox 3.6.4Windows XP

    我只是进来围观天使的 :lol:

  3. 卜卜口の Jun 25th, 2010 @ 23:12 | #33 Google Chrome 5.0.375.28Windows 7

    :mrgreen: 觉得茶馆这么大的访问量的博客还是静态化或者换成vps的好些…

  4. 亦念 Jun 25th, 2010 @ 23:37 | #34 Firefox 3.6.3Windows 7

    @李掌柜
    说得好像虚拟主机不要钱一样 :mrgreen:

    @卜卜口の
    数据库也可以静态化吗?

  5. 星野苍真 Jun 25th, 2010 @ 23:38 | #35 Firefox 3.6.3Windows 7

    这段时间经常出现那段提示,刷新之后就500错误了

  6. 星野苍真 Jun 25th, 2010 @ 23:41 | #36 Firefox 3.6.3Windows 7

    是不是访问数据库太频繁了,被强制中断连接了?装个数据库缓存插件试试 :oops:

  7. 卜卜口の Jun 25th, 2010 @ 23:41 | #37 Google Chrome 5.0.375.28Windows 7

    亦念 :
    @卜卜口の
    数据库也可以静态化吗?

    把网页静态化之后不就可以减少数据库的查询次数了嘛~

    何为数据库静态化?

  8. 李掌柜 Jun 26th, 2010 @ 01:04 | #38 Firefox 3.6.4Windows 7

    @卜卜口の
    恩,再观察几天看看吧~

    @亦念
    和VPS一比就差不多不要钱了 :mrgreen:

    @星野苍真
    今天出现过这种情况吗?

  9. 星野苍真 Jun 26th, 2010 @ 01:52 | #39 Firefox 3.6.3Windows 7

    @李掌柜
    出现过,还很持续了一会

  10. 浦画林 Jun 26th, 2010 @ 08:19 | #40 360Safe ExplorerWindows XP

    回掌柜:我不会!
    PS:话说天大挺注重培养学生自主创新能力嘛

  11. 李掌柜 Jun 26th, 2010 @ 10:38 | #41 Firefox 3.6.4Windows 7

    @星野苍真
    不是吧,我这里没提示啊…
    监控没有出现问题的 :mrgreen:

    @浦画林
    恩,实事求是嘛 :smile:

  12. Bee君 Jun 26th, 2010 @ 21:44 | #42 Google Chrome 5.0.375.86Windows XP

    好吧…… ╮(╯-╰)╭ :!: 我被豆腐骗人 :cry:

  13. zzzhu Jun 26th, 2010 @ 22:30 | #43 Internet Explorer 7.0Windows XP

    我不清楚 看别人能帮你吗

  14. 维C生活网 Jun 27th, 2010 @ 10:59 | #44 360Safe ExplorerWindows XP

    话说,图片上的卡通人物很可爱,超级稀罕

  15. 最有效的减肥药 Jun 27th, 2010 @ 11:58 | #45 Internet Explorer 6.0Windows XP

    虽然不懂,也要支持下。

  16. D Jun 27th, 2010 @ 12:03 | #46 Internet Explorer 8.0Windows XP

    @维C生活网
    天使啊
    最近很红啊!
    超萌~

  17. Jacse Jun 27th, 2010 @ 18:39 | #47 Google Chrome 5.0.342.3Windows 7

    昨天我的博客似乎被墙了,后来才发现是防火墙大姨妈了。
    换了服务器后,错误一堆,折腾一天又整回去了。

  18. ALO Jun 27th, 2010 @ 19:10 | #48 Firefox 3.6.4Windows XP

    。。无力,不懂。。只能围观了。我还以为是自己网不好了

  19. 疾风 Jun 28th, 2010 @ 16:19 | #49 Firefox 3.6.4Windows 7

    是不是访问过大 现在解决了吗 怎么回事呢

  20. Shiki Jun 28th, 2010 @ 17:04 | #50 Google Chrome 5.0.375.86Windows XP

    $cfg['MaxExactCount'] integer
    Determines for how large tables phpMyAdmin should get exact row count by SELECT COUNT. If approximate row count is smaller than this value, SELECT COUNT will be used, otherwise only value returned by SHOW TABLE STATUS. This has currently an impact only on InnoDB tables.

    Google了一下,貌似是因为你数据库里的表记录太多了,把$cfg['MaxExactCount'] 这个值设大一点试试有没有用

  21. 李掌柜 Jun 28th, 2010 @ 17:21 | #51 Firefox 3.6.6Windows 7

    @Bee君
    是骗入吧,难道是用五笔打字?

    @zzzhu
    目前茶馆表现良好~

    @维C生活网
    这个动画也很不错的,有机会看看吧 :smile:
    angel beats

    @Jacse
    防火墙?服务器的吗?

    @ALO
    那个提示是数据库的问题- -

    @疾风
    至少这两天没发现问题,再看看吧 :smile:

    @Shiki
    不知道$cfg['MaxExactCount'] 这个值在哪里设置= =

  22. zzzhu Jun 28th, 2010 @ 22:31 | #52 Internet Explorer 7.0Windows XP

    这个不了解

  23. 陆少博 Jun 29th, 2010 @ 08:49 | #53 360Safe ExplorerWindows XP

    那数据库E文自个翻译下,当然用工具了。

  24. www.se7ens.cn Jun 29th, 2010 @ 09:44 | #54 Internet Explorer 7.0Windows XP

    额。。这还真不知道。。

  25. 李掌柜 Jun 29th, 2010 @ 10:17 | #55 Firefox 3.6.6Windows 7

    @zzzhu

    @陆少博

    @www.se7ens.cn
    恩,还是谢谢了

  26. kexi Jun 29th, 2010 @ 12:43 | #56 360Safe ExplorerWindows XP

    初次来这,发现资源帝!!膜拜一下~~

    每次发现好资源想下下来,奈何校园网不给力啊,半夜会断网,只有清早起来下

    收藏,收藏,期待掌柜 的资源~~~

    PS:有QQ群吗,麻烦号码告知一下~~~~

  27. GO时尚网 Jun 29th, 2010 @ 14:04 | #57 Firefox 3.6.4Windows XP

    只是来看下图片 哈哈 :razz:

  28. zwh Jun 29th, 2010 @ 14:59 | #58 Opera 10.54Windows XP

    Error establishing a database connection在搜索引擎上有很多的帖子,我看了看也许有的会有用吧?李掌柜去看看吧,也许能帮到你,毕竟有困难找百度嘛!

  29. 做爱做的事 Jun 29th, 2010 @ 17:11 | #59 Internet Explorer 8.0Windows XP

    没有发现问题哦

  30. 小叶榄仁 Jun 29th, 2010 @ 17:11 | #60 Internet Explorer 8.0Windows XP

    观察了一下,没有你说的问题啊,难道已经解决了?

正在和谐评论,请稍候...
评论分页 1 2 3

我来说两句

插入图片关闭
URL地址:
0

Trackbacks & Pingbacks ( 2 )
  1. Jan 5th, 2011 @ 21:41 | #1
    Pingback: WordPress出现“Error establishing a database connection”解决办法 | Lin's Space|Only
  2. Dec 3rd, 2011 @ 21:53 | #2
    Pingback: wordpress链接MySql出现错误的解决方法 – 张衡Henry | 人生就像攀登,但风景是美好的