I have exported the full database using sql and excel methods from a shop.
I have another shop of the same version which has sample data in it.
I would like to empty that data and then import the data from the previous shop.
This is what I ahve done thus far..
I have used the emptytables.sql mod to empty the data from the new db. The shop now shows no products or categories so I guess that worked.
Tried to import the new db via both sql and csv.
This is the error importing the sql
Error SQL query: -- -- Dumping data for table `address_format` -- INSERT INTO `address_format` ( `address_format_id` , `address_format` , `address_summary` ) VALUES ( 1, '$firstname $lastname$cr$streets$cr$city, $postcode$cr$statecomma$country', '$city / $country' ) , ( 2, '$firstname $lastname$cr$streets$cr$city, $state $postcode$cr$country', '$city, $state / $country' ) , ( 3, '$firstname $lastname$cr$streets$cr$city$cr$postcode - $statecomma$country', '$state / $country' ) , ( 4, '$firstname $lastname$cr$streets$cr$city ($postcode)$cr$country', '$postcode / $country' ) , ( 5, '$firstname $lastname$cr$streets$cr$postcode $city$cr$country', '$city / $country' ) ; MySQL said: Documentation #1062 - Duplicate entry '1' for key 1
This is the message I get when importing the csv..
Import has been successfully finished, 2 queries executed.
The following structures have either been created or altered. Here you can:
* View a structure`s contents by clicking on its name
* Change any of its settings by clicking the corresponding "Options" link
* Edit its structure by following the "Structure" link
* justwine_2011 (Options)
o TABLE 51 (Structure) (Options)
I have tried this a few times however it keeps adding an entry TABLE 50 or 51 and not importing into the correct fields.
What am I doing wrong?
Thanks
oz














