关于最近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.

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

92 Comments

  1. Internet Explorer 6.0 Internet Explorer 6.0 Windows XP Windows XP
    Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; QQDownload 563; CNCDialer)

    😥 好吧,我承认我是来看天使的 – –

  2. Firefox 3.6.4 Firefox 3.6.4 Windows XP Windows XP
    Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9.2.4) Gecko/20100611 Firefox/3.6.4

    我只是进来围观天使的 😆

  3. Google Chrome 5.0.375.28 Google Chrome 5.0.375.28 Windows 7 Windows 7
    Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.28 Safari/533.4

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

  4. Firefox 3.6.3 Firefox 3.6.3 Windows 7 Windows 7
    Mozilla/5.0 (Windows; U; Windows NT 6.1; zh-CN; rv:1.9.2.3) Gecko/20100401 AlexaToolbar/alxf-1.54 Firefox/3.6.3

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

  5. Firefox 3.6.3 Firefox 3.6.3 Windows 7 Windows 7
    Mozilla/5.0 (Windows; U; Windows NT 6.1; zh-CN; rv:1.9.2.3) Gecko/20100401 AlexaToolbar/alxf-1.54 Firefox/3.6.3

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

  6. Google Chrome 5.0.375.28 Google Chrome 5.0.375.28 Windows 7 Windows 7
    Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.28 Safari/533.4

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

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

    何为数据库静态化?

  7. 360Safe Explorer 360Safe Explorer Windows XP Windows XP
    Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB6.4; 360SE)

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

  8. Google Chrome 5.0.375.86 Google Chrome 5.0.375.86 Windows XP Windows XP
    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.86 Safari/533.4

    好吧…… ╮(╯-╰)╭ ❗ 我被豆腐骗人 😥

  9. Internet Explorer 7.0 Internet Explorer 7.0 Windows XP Windows XP
    Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; CNCDialer; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 2.0.50727)

    我不清楚 看别人能帮你吗

  10. 360Safe Explorer 360Safe Explorer Windows XP Windows XP
    Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; 360SE)

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

  11. Google Chrome 5.0.342.3 Google Chrome 5.0.342.3 Windows 7 Windows 7
    Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/533.2 (KHTML, like Gecko) Chrome/5.0.342.3 Safari/533.2

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

  12. Firefox 3.6.4 Firefox 3.6.4 Windows XP Windows XP
    Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9.2.4) Gecko/20100611 Firefox/3.6.4

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

  13. Firefox 3.6.4 Firefox 3.6.4 Windows 7 Windows 7
    Mozilla/5.0 (Windows; U; Windows NT 6.1; zh-CN; rv:1.9.2.4) Gecko/20100611 AlexaToolbar/alxf-1.54 Firefox/3.6.4 GTB7.0

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

  14. Google Chrome 5.0.375.86 Google Chrome 5.0.375.86 Windows XP Windows XP
    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.86 Safari/533.4

    $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’] 这个值设大一点试试有没有用

  15. Firefox 3.6.6 Firefox 3.6.6 Windows 7 Windows 7
    Mozilla/5.0 (Windows; U; Windows NT 6.1; zh-CN; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6

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

    @zzzhu
    目前茶馆表现良好~

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

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

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

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

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

  16. Internet Explorer 7.0 Internet Explorer 7.0 Windows XP Windows XP
    Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; CNCDialer; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 2.0.50727)

    这个不了解

  17. 360Safe Explorer 360Safe Explorer Windows XP Windows XP
    Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; QQDownload 627; 360SE)

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

  18. Internet Explorer 7.0 Internet Explorer 7.0 Windows XP Windows XP
    Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; QQDownload 618; GTB6.5; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 2.0.50727; CIBA; .NET CLR 1.1.4322; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; Alexa Toolbar)

    额。。这还真不知道。。

  19. 360Safe Explorer 360Safe Explorer Windows XP Windows XP
    Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; QQDownload 627; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 2.0.50727; 360SE)

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

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

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

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

  20. Firefox 3.6.4 Firefox 3.6.4 Windows XP Windows XP
    Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9.2.4) Gecko/20100611 Firefox/3.6.4

    只是来看下图片 哈哈 😛

  21. Opera 10.54 Opera 10.54 Windows XP Windows XP
    Opera/9.80 (Windows NT 5.1; U; zh-cn) Presto/2.5.24 Version/10.54

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

  22. Internet Explorer 8.0 Internet Explorer 8.0 Windows XP Windows XP
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.5; Alexa Toolbar; .NET CLR 2.0.50727)

    没有发现问题哦

  23. Internet Explorer 8.0 Internet Explorer 8.0 Windows XP Windows XP
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.5; Alexa Toolbar; .NET CLR 2.0.50727)

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

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.