【发布时间】:2013-08-22 17:45:41
【问题描述】:
我最近尝试备份我的生产站点并将内容上传到本地运行的 barbones drupal 安装。当我进行恢复时,我在更新大约 15 秒后收到以下错误:
PDOException: SQLSTATE[23000]: Integrity constraint violation: 1217 Cannot delete or
update a parent row: a foreign key constraint fails in
backup_migrate_destination_db_mysql->_restore_db_from_file() (line 201 of /Applications
/XAMPP/xamppfiles/htdocs/devProject/sites/all/modules/backup_migrate/includes
/destinations.db.mysql.inc).
我检查了第 201 行,它是模块从备份中一次处理 mysql 的地方:$stmt->execute();
我运行的模块版本是:Backup and Migrate 2 for Drupal 7.x
在我的导入失败后,我得到了杀死我本地站点的 PHP 错误。
【问题讨论】:
-
那种错误感觉就像您没有分配足够的内存并且备份中途失败。您是否配置了本地 php.ini 以增加 php 内存?您可能希望从全新安装开始,然后重试。你能分享一下你的php配置的内存位吗?
-
您可能会在SE's Drupal site 获得更好的结果。