Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2010
    Posts
    30
    Plugin Contributions
    0

    Default Importing data into tables

    I am importing a database from one server to another via phpMyAdmin. I am importing one table at a time. Importing records into an empty table is no problem. But I am getting SQL errors (duplicate errors) when importing records into a table that is partially populated.

    Some of the tables are populated with default data (like the configuration table). I am wondering about a couple of things.

    First, does importing data into the Zen Cart database override records or just add records. I don't want to add records but replace records so I am wondering if I should delete all the default records first before I import records into any particular table. Should I delete all the records so I can import into an empty table? Any advice from anyone that has been down this road?

  2. #2
    Join Date
    Jan 2010
    Posts
    30
    Plugin Contributions
    0

    Default Re: Importing data into tables

    Since no one replied I will answer my own question in case someone else is importing data for the first time using phpMyAdmin and needs some of the same information.

    Importing tables went smoothly. Since Zen Cart has some default records in many of it's tables on the initial install, I got SQL errors when I tried to import tables into a table that already had some records. I deleted all the records from a table before I imported the records from the other server. A table has to be empty before you can import records into it (unless you are appending records). This worked well. Occasionally, I would get a SQL error because a field was added to the source table, so I would have to add the same field to the original Zen Cart table.

 

 

Similar Threads

  1. v153 Importing Data Feed into new cart
    By msbfrnj in forum Setting Up Categories, Products, Attributes
    Replies: 12
    Last Post: 9 Sep 2014, 11:29 AM
  2. Importing old DB to new only brings in 29 tables
    By rstevenson in forum Upgrading from 1.3.x to 1.3.9
    Replies: 5
    Last Post: 4 Sep 2011, 10:59 PM
  3. Importing tables separately
    By waterbender in forum Upgrading from 1.3.x to 1.3.9
    Replies: 2
    Last Post: 16 May 2010, 06:04 PM
  4. Importing db tables/rows from 1.3.0.1 to 1.3.8a - possible?
    By bodyjewelrystores in forum Upgrading from 1.3.x to 1.3.9
    Replies: 0
    Last Post: 16 Apr 2009, 02:45 PM
  5. Help importing data into database...
    By dbunch in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 1
    Last Post: 18 Jan 2007, 11:45 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg