Hola a todos:
Estoy exportando mi BD de Magento desde phpMyAdmin usando Export y marcando como opciones:
Structure:
Add IF NOT EXISTS
Add AUTO_INCREMENT value
Enclose table and field names with backquotes
Data:
Complete inserts
Extended inserts
Use hexadecimal for binary fields
Después intento importar la BD anteriormente exportada con la opción SQL y me carga las 218 tablas pero me da el siguiente error:
SQL query:
--
-- Constraints for table `catalog_category_entity_int`
--
ALTER TABLE `catalog_category_entity_int` ADD CONSTRAINT `FK_CATALOG_CATEGORY_EMTITY_INT_ATTRIBUTE` FOREIGN KEY ( `attribute_id` ) REFERENCES `eav_attribute` ( `attribute_id` ) ON DELETE CASCADE ON UPDATE CASCADE ,
ADD CONSTRAINT `FK_CATALOG_CATEGORY_EMTITY_INT_ENTITY` FOREIGN KEY ( `entity_id` ) REFERENCES `catalog_category_entity` ( `entity_id` ) ON DELETE CASCADE ON UPDATE CASCADE ,
ADD CONSTRAINT `FK_CATALOG_CATEGORY_EMTITY_INT_STORE` FOREIGN KEY ( `store_id` ) REFERENCES `core_store` ( `store_id` ) ON DELETE CASCADE ON UPDATE CASCADE
MySQL said: Documentation
#1452 - Cannot add or update a child row: a foreign key constraint fails (`db307807632/#sql-5d80_1a1858`, CONSTRAINT `FK_CATALOG_CATEGORY_EMTITY_INT_STORE` FOREIGN KEY (`store_id`) REFERENCES `core_store` (`store_id`) ON DELETE CASCADE ON UPDATE CASCADE)
Si alguien me pudiese ayudar le estaría muy agradecido.
Gracias.
Hola a tod@s, yo también tengo un problema parecido cuando trato de importar mi bd me arroja este error:
consulta SQL:
ALTER TABLE `tax_calculation_rate_title` ADD CONSTRAINT `FK_TAX_CALCULATION_RATE_TITLE_RATE` FOREIGN KEY ( `tax_calculation_rate_id` ) REFERENCES `tax_calculation_rate` ( `tax_calculation_rate_id` ) ON DELETE CASCADE ON UPDATE CASCADE ,
ADD CONSTRAINT `FK_TAX_CALCULATION_RATE_TITLE_STORE` FOREIGN KEY ( `store_id` ) REFERENCES `core_store` ( `store_id` ) ON DELETE CASCADE ON UPDATE CASCADEMySQL ha dicho:
#1005 - No puedo crear tabla '.mi_basedatos#sql-10e0_4a.frm' (Error: 121)
Si alguien nos puede ayudar sería fabuloso :jeje: