Download & Extend

PDOException: SQLSTATE[HY000]: General error: 1005 Can't create table

Project:Backup and Migrate
Version:7.x-2.4
Component:Code
Category:bug report
Priority:major
Assigned:Unassigned
Status:closed (duplicate)

Issue Summary

I get the following error when I try to restore a backup.

PDOException: SQLSTATE[HY000]: General error: 1005 Can't create table 'ewt.dr_private_files_download_permission_directory_role' (errno: 150) in backup_migrate_destination_db_mysql->_restore_db_from_file() (line 198 of /var/www/ewt/sites/all/modules/backup_migrate/includes/destinations.db.mysql.inc).

Comments

#1

Status:active» closed (duplicate)

This is likely a foreign key constraint failing. That would make it a duplicate of: #1542274: Restore fails for CIVICRM databases because of foreign key checks.

nobody click here