Exportar/Importar B...
 
Avisos
Vaciar todo

Exportar/Importar BD Magento

2 Respuestas
2 Usuarios
0 Reactions
2,814 Visitas
(@jara64)
Respuestas: 51
Estimable Member
Topic starter
 

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.


 
Respondido : 18/11/2009 10:49 am
 Gtm
(@gtm)
Respuestas: 34
Eminent Member
 

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 CASCADE

MySQL ha dicho:

#1005 - No puedo crear tabla '.mi_basedatos#sql-10e0_4a.frm' (Error: 121)

Si alguien nos puede ayudar sería fabuloso :jeje:


 
Respondido : 19/02/2010 9:34 pm