gpt4 book ai didi

mysql - 安装 Drupal 7 时出错

转载 作者:行者123 更新时间:2023-11-29 23:45:57 25 4
gpt4 key购买 nike

我知道很多人在尝试安装 Drupal 7 时都会遇到同样的错误。但是在尝试了我读到的解决方案后,我仍然无法正确安装 Drupal。

安装 27 个模块(共 28 个)后,我收到以下消息:

An AJAX HTTP error occurred. 
HTTP Result Code: 500 Debugging information follows.
Path: `http://localhost/drupal/install.php?profile=standard&locale=en&id=1&op=do`
StatusText: Service unavailable (with message)
ResponseText: PDOException: SQLSTATE[HY000]:
General error: 2006 MySQL server has gone away:
SELECT expire, value FROM {semaphore}
WHERE name = :name; Array ( [:name] => menu_rebuild )
in lock_may_be_available()
(line 167 of C:\wamp\www\drupal\includes\lock.inc).Uncaught exception thrown in shutdown function.PDOException:
SQLSTATE[HY000]: General error: 2006 MySQL server has gone away:
DELETE FROM {semaphore} WHERE (value = :db_condition_placeholder_0) ;
Array ( [:db_condition_placeholder_0] => 802228002541876118e8773.14607894 )
in lock_release_all()
(line 269 of C:\wamp\www\drupal\includes\lock.inc).
Uncaught exception thrown in session handler.PDOException: SQLSTATE[HY000]:
General error: 2006 MySQL server has gone away:
SELECT 1 AS expression FROM {sessions} sessions
WHERE ( (sid = :db_condition_placeholder_0) AND
(ssid = :db_condition_placeholder_1) );
Array ( [:db_condition_placeholder_0] => ZLNqcOjZv5_OY8Y_fNwE0Il6hHmlJCLVL9qK5XUBTIo
[:db_condition_placeholder_1] => ) in _drupal_session_write()
(line 209 of C:\wamp\www\drupal\includes\session.inc).'

当我在 WAMP 服务器停止后重新启动它时,我仍然可以安装 Drupal,但随后它无法正常工作。

  • 我已将 max_allowed_pa​​cket 的数量提高到不同的高值。
  • 我在 my.ini 中提出了其他数字。
  • 我重新安装了 WAMP。
  • 每次重新尝试时,我都会删除 Drupal、我的数据库以及 Chrome 中的历史记录。

  • 我的 PHP 版本是 5.5.12

  • 我在 Windows 8 中工作
  • 我在本地主机上工作。

我还能尝试什么?

<小时/>

我尝试增加 my.ini 和 php.ini 中的数字,但这没有帮助。每次出错后我都会删除数据库。

我自己有一个新想法:

这可能与我的settings.php有关吗?

在开始之前,我将:$update_free_access = FALSE; 设置为 TRUE(以 Notepad++ 中的管理员身份)。关闭文件后,我重新打开它以检查它是否确实已更改。收到错误后,我重新打开 settings.php 文件,它再次显示 $update_free_access = FALSE 。但我自己并没有把它改回来。

这可能是我的问题的根源吗?我怎样才能避免这种情况?

我应该在同一个文件中对此执行一些操作吗?

'pdo' => array( * PDO::ATTR_TIMEOUT => 5,

我还应该在 settings.php 中更改其他内容吗?

最佳答案

也许 MySQL 内存不够!增加 MySQL 内存可能会解决此问题 (my.conf)。

请参见此处:https://www.drupal.org/node/1014172

关于mysql - 安装 Drupal 7 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25950019/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com