I want to upgrade Magento. Therefor I first want to transfer the live production system to a development workspace. I am trying to import the production database into a clean database. But I can't get it imported correctly. I have tried several options: exporting via Magento admin, exporting via phpMyAdmin with different settings including (and excluding) the statements as shown at http://www.magentocommerce.com/wiki/1_-_installation_and_configuration/restoring_a_backup_of_a_magento_database
I am using Magento 1.5.1.0, phpMyAdmin 4.0.8 and the latest version of BigDump to import.
This is the error I receive after a while:
Error at the line 8699: ADD CONSTRAINT
FK_CATALOG_CATEGORY_ENTITY_DATETIME_STOREFOREIGN KEY (store_id) REFERENCESmage_core_store(store_id) ON DELETE CASCADE ON UPDATE CASCADE; Query: ALTER TABLEmage_catalog_category_entity_datetimeADD CONSTRAINTFK_CATALOG_CATEGORY_ENTITY_DATETIME_ATTRIBUTEFOREIGN KEY (attribute_id) REFERENCESmage_eav_attribute(attribute_id) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINTFK_CATALOG_CATEGORY_ENTITY_DATETIME_ENTITYFOREIGN KEY (entity_id) REFERENCESmage_catalog_category_entity(entity_id) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINTFK_CATALOG_CATEGORY_ENTITY_DATETIME_STOREFOREIGN KEY (store_id) REFERENCESmage_core_store(store_id) ON DELETE CASCADE ON UPDATE CASCADE MySQL: Cannot add or update a child row: a foreign key constraint fails (goldenm101_mage4.#sql-182e_c1d79, CONSTRAINTFK_CATALOG_CATEGORY_ENTITY_DATETIME_STOREFOREIGN KEY (store_id) REFERENCESmage_core_store(store_id) ON DELETE CASCADE ON UPDATE CASC)'
Additional information: I don't have SSH access.
Error after the possible solution of mageUz:
Error at the line 1487637: ADD CONSTRAINT
FK_catalogrule_product_websiteFOREIGN KEY (website_id) REFERENCESmage_core_website(website_id) ON DELETE CASCADE ON UPDATE CASCADE; Query: -- -- ALTER TABLEmage_catalogrule_productADD CONSTRAINTFK_catalogrule_product_customergroupFOREIGN KEY (customer_group_id) REFERENCESmage_customer_group(customer_group_id) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINTFK_CATALOGRULE_PRODUCT_PRODUCTFOREIGN KEY (product_id) REFERENCESmage_catalog_product_entity(entity_id) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINTFK_catalogrule_product_ruleFOREIGN KEY (rule_id) REFERENCESmage_catalogrule(rule_id) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINTFK_catalogrule_product_websiteFOREIGN KEY (website_id) REFERENCESmage_core_website(website_id) ON DELETE CASCADE ON UPDATE CASCADE MySQL: Cannot add or update a child row: a foreign key constraint fails (goldenm101_mage4.#sql-182e_308afa, CONSTRAINTFK_catalogrule_product_customergroupFOREIGN KEY (customer_group_id) REFERENCESmage_customer_group(customer_group_id) ON DELETE CASC)