我正在尝试在共享主机上安装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
显然有太多的联系,但为什么呢?也许是因为它是共享主机?
答案 0 :(得分:1)
错误意味着数据库此刻无法再处理任何连接。这可能发生的原因有很多。一些常见的例子可能是......
solve or mitigate this problem有多种方法涉及更改MySQL数据库设置(例如,增加同时连接的数量......假设服务器可以支持它)。
如果您没有对数据库服务器的管理访问权限,那么您将拥有有限的选项。检查您的托管服务提供商的数据库文档,看看您是否有任何选择。