手册:DBError.php

This page is a translated version of the page Manual:DBError.php and the translation is 100% complete.

DBConnectionError

这是一个臭名昭著的错误:

抱歉!本网站出现了一些技术问题。 请等待几分钟后重试。

如果你看到这一点,数据库很不高兴,但至少MediaWiki还活着,并知道这一点。

无法连接到数据库

If you encounter this issue, follow the steps below to investigate the cause:

  1. Check the Apache error log. On Ubuntu systems, this log is located at /var/log/apache2/error.log by default.
  2. Look for error messages similar to the following:
    • MySQL server has gone away
    • Error reading result set's header
  3. These messages typically indicate a problem with the database connection.

Searching for these phrases may help you find relevant discussions and potential solutions.

If necessary, review the configuration settings for MySQL and Apache, particularly those related to timeouts and connection limits.