magento - Blanco page after uploading mysql file -


i try upload mysql file server. when upload white page when upload .xml or .zip

i need magento.

when upload .sql error: error sql query:

-- -- constraints table `eav_entity_attribute` -- alter table  `eav_entity_attribute` add constraint  `fk_eav_entity_attribute_attribute` foreign key (  `attribute_id` ) references  `eav_attribute` ( `attribute_id` ) on delete cascade on update cascade , add constraint  `fk_eav_entity_attribute_group` foreign key (  `attribute_group_id` ) references  `eav_attribute_group` (  `attribute_group_id` ) on delete cascade on update cascade ; 

mysql said: documentation

#1452 - cannot add or update child row: foreign key constraint fails (geschenk_test.#sql-29b_7c74, constraint fk_eav_entity_attribute_attribute foreign key (attribute_id) references eav_attribute (attribute_id) on delete cascade on update cascade)

to restore .sql file backup without constraint checking, add following statements @ beginning of .sql file:  set @old_character_set_client=@@character_set_client; set @old_character_set_results=@@character_set_results; set @old_collation_connection=@@collation_connection; set names utf8; set @old_unique_checks=@@unique_checks, unique_checks=0; set @old_foreign_key_checks=@@foreign_key_checks, foreign_key_checks=0; set @old_sql_mode=@@sql_mode, sql_mode='no_auto_value_on_zero'; set @old_sql_notes=@@sql_notes, sql_notes=0;  @ end of file, add statements required turn on constraint checking again:  set sql_mode=@old_sql_mode; set foreign_key_checks=@old_foreign_key_checks; set unique_checks=@old_unique_checks; set character_set_client=@old_character_set_client; set character_set_results=@old_character_set_results; set collation_connection=@old_collation_connection; set sql_notes=@old_sql_notes;   please refer http://www.magentocommerce.com/wiki/1_-_installation_and_configuration/restoring_a_backup_of_a_magento_database 

Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -