1

我正在尝试在 Windows 上使用 IIS 7 安装 Drupal,并且在安装失败并显示以下错误消息之前,它在安装过程中已经走得很远了。我总是不得不返回 Windows 服务并启动 MySQL 服务备份,因为发生此错误时它停止了。我试过安装 Drupal Commons 和香草 Drupal 发行版。

An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information
 follows. Path: http://www.example.com/install.php?
profile=commons&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] => variable_init ) in lock_may_be_available()
 (line 167 of D:\Projects\example.com\Web\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] => 2549963715563580905eb52.94473467 ) 
in lock_release_all() (line 269 of 
D:\Projects\example.com\Web\includes\lock.inc).

我确实尝试将服务属性设置为在失败时重新启动,这似乎让我在安装过程中走得更远,但不确定是什么原因造成的?

4

1 回答 1

1

我将 MySQL Windows 服务属性设置为在发生故障时自动重新启动。它仍然随机失败,但走得更远,最终成功。

我还优化了 MySQL,但不确定它是否真的有帮助:

https://www.drupal.org/node/259580

于 2015-06-19T13:58:50.007 回答