Fresh MediaWiki永远加载

时间:2014-01-11 01:21:16

标签: php mysql mediawiki

我正在尝试在共享主机上安装MediaWiki。我下载了MediaWiki 1.22.0并且运行安装没有任何问题。但是当我尝试访问主页面时,它会永远加载。我激活了调试模式,清空了debug.log,然后加载了Main Page,直到浏览器足够了。我搜索了“错误”这个词并复制了下面的上下文:

Start request GET /
HTTP HEADERS:
USER-AGENT: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1;)
HOST: www.wiki.brake-caliper-painting.com
CONNECTION: keep-alive
ACCEPT-LANGUAGE: zh-cn
ACCEPT: */*
ACCEPT-ENCODING: gzip
CACHES: EmptyBagOStuff[main] SqlBagOStuff[message] SqlBagOStuff[parser]
LocalisationCache: using store LCStore_DB
Fully initialised
Query brakecal_mw19583 (1) (slave): SET /* DatabaseMysqlBase::open  */ NAMES binary
Query brakecal_mw19583 (2) (slave): SET /* DatabaseMysqlBase::open  */ sql_mode = ''
Connected to database 0 at localhost
DB connection error
Server: localhost, User: brakecal_mw19583, Password: Hx8..., error: :real_connect(): (08004/1040): Too many connections
Failed to connect to database 0 at localhost
SqlBagOStuff::markServerDown: Server #0 down until 1389404759
[SQLBagOStuff] DBError: DB connection error: Too many connections (localhost)
SqlBagOStuff::handleReadError: ignoring connection error
SqlBagOStuff::markServerDown: Server #0 already down
[SQLBagOStuff] DBError: DB connection error: Too many connections (localhost)
SqlBagOStuff::handleReadError: ignoring connection error
SqlBagOStuff::markServerDown: Server #0 already down
[SQLBagOStuff] DBError: DB connection error: Too many connections (localhost)
SqlBagOStuff::handleWriteError: ignoring connection error
SqlBagOStuff::markServerDown: Server #0 already down
[SQLBagOStuff] DBError: DB connection error: Too many connections (localhost)
SqlBagOStuff::handleReadError: ignoring connection error
SqlBagOStuff::markServerDown: Server #0 already down
[SQLBagOStuff] DBError: DB connection error: Too many connections (localhost)
SqlBagOStuff::handleReadError: ignoring connection error
SqlBagOStuff::markServerDown: Server #0 already down
[SQLBagOStuff] DBError: DB connection error: Too many connections (localhost)
SqlBagOStuff::handleWriteError: ignoring connection error
SqlBagOStuff::markServerDown: Server #0 already down
[SQLBagOStuff] DBError: DB connection error: Too many connections (localhost)
SqlBagOStuff::handleWriteError: ignoring connection error
SqlBagOStuff::markServerDown: Server #0 already down
[SQLBagOStuff] DBError: DB connection error: Too many connections (localhost)
SqlBagOStuff::handleWriteError: ignoring connection error
SqlBagOStuff::markServerDown: Server #0 already down
[SQLBagOStuff] DBError: DB connection error: Too many connections (localhost)
SqlBagOStuff::handleReadError: ignoring connection error
SqlBagOStuff::markServerDown: Server #0 already down
[SQLBagOStuff] DBError: DB connection error: Too many connections (localhost)
SqlBagOStuff::handleReadError: ignoring connection error
SqlBagOStuff::markServerDown: Server #0 already down
[SQLBagOStuff] DBError: DB connection error: Too many connections (localhost)
SqlBagOStuff::handleWriteError: ignoring connection error

显然有太多的联系,但为什么呢?也许是因为它是共享主机?

1 个答案:

答案 0 :(得分:1)

错误意味着数据库此刻无法再处理任何连接。这可能发生的原因有很多。一些常见的例子可能是......

  • 您的特定网站目前受到大量流量的攻击(例如搜索引擎抓取工具或只是很多观看者),导致更多的网页同步请求数据库可以处理。
  • 可能(并且不幸)您的共享主机配置方式是多个帐户共享数据库资源而另一个站点已经消耗了所有这些资源。

solve or mitigate this problem有多种方法涉及更改MySQL数据库设置(例如,增加同时连接的数量......假设服务器可以支持它)。

如果您没有对数据库服务器的管理访问权限,那么您将拥有有限的选项。检查您的托管服务提供商的数据库文档,看看您是否有任何选择。