Results 1 to 8 of 8
  1. #1
    Join Date
    May 2008
    Posts
    182
    Plugin Contributions
    0

    Default Importing only certain tables of a backed up database

    I am wondering is it possible to only import certain tables from a previously backed up database?
    If it is, can someone explain how, or point me in the right direction please?
    I cannot find anything from searching, except a complete backup.
    www.candlewithcare.co.uk
    Luxury Scented
    Candles at great prices!

  2. #2
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,246
    Plugin Contributions
    58

    Default Re: Importing only certain tables of a backed up database

    Quote Originally Posted by CandleMan View Post
    I am wondering is it possible to only import certain tables from a previously backed up database?
    If it is, can someone explain how, or point me in the right direction please?
    I cannot find anything from searching, except a complete backup.
    If you have done this https://www.zen-cart.com/tutorials/i...hp?article=103 to create a dump, then in phpMyadmin you can drop just the tables from your dump in that you wish.

    You will also find this helpful https://www.zen-cart.com/tutorials/i...hp?article=100

    ~Melanie
    PRO-Webs, Inc. since 2003 :: Zen Cart Hosting :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are not conducive to a helpful community.

  3. #3
    Join Date
    May 2008
    Posts
    182
    Plugin Contributions
    0

    Default Re: Importing only certain tables of a backed up database

    So if I dump the tables I want to overwrite, then when I import, it will only overwrite the "Dumped" tables yes?
    www.candlewithcare.co.uk
    Luxury Scented
    Candles at great prices!

  4. #4
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,246
    Plugin Contributions
    58

    Default Re: Importing only certain tables of a backed up database

    You will open the dump (backup) you created in a text editor like PSPad and the copy the tables a few at a time and paste them in the SQL window in phpMyAdmin to overwrite.

    ~Melanie
    PRO-Webs, Inc. since 2003 :: Zen Cart Hosting :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are not conducive to a helpful community.

  5. #5
    Join Date
    May 2008
    Posts
    182
    Plugin Contributions
    0

    Default Re: Importing only certain tables of a backed up database

    Is there a list anywhere or maybe instructions so I can import certain things.

    Ie, to import existing customers and their orders which tables do I import?

    To import existing categories and products which tables do I import?
    www.candlewithcare.co.uk
    Luxury Scented
    Candles at great prices!

  6. #6
    Join Date
    Feb 2007
    Location
    Burleson. Texas
    Posts
    194
    Plugin Contributions
    0

    Default Re: Importing only certain tables of a backed up database

    Quote Originally Posted by mprough View Post
    You will open the dump (backup) you created in a text editor like PSPad and the copy the tables a few at a time and paste them in the SQL window in phpMyAdmin to overwrite.

    ~Melanie
    Is there a simple way to convert that data to a patch that can be inserted via the admin? Like maybe remove any db name reference? I was thinking of trying that scenerio of adding users from one to another db. My guess would be the zen_customer_info, the zen_customer and maybe the zen_address_book as well might do it. I have yet to try this on a test site but will try it soon. Any suggestions or hints are appreciated.
    Dennis
    www.stampdays.com
    Over 80,000 stamps and still growing!

  7. #7
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Importing only certain tables of a backed up database

    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  8. #8
    Join Date
    Feb 2007
    Location
    Burleson. Texas
    Posts
    194
    Plugin Contributions
    0

    Default Re: Importing only certain tables of a backed up database

    Quote Originally Posted by DrByte View Post
    Thanks, that confirmed my quess. I tried it and it worked great I copied two users from one test site to the second one. Everything AOK, including the address books. On a live site I would need to add the 4th insert as well, don't want to omit any group assignments.
    Dennis
    www.stampdays.com
    Over 80,000 stamps and still growing!

 

 

Similar Threads

  1. 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
  2. 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
  3. Importing data into tables
    By john_c in forum General Questions
    Replies: 1
    Last Post: 18 Feb 2010, 10:38 PM
  4. Create Database, Tables and Drop Database or Tables
    By elwood cordery in forum General Questions
    Replies: 3
    Last Post: 17 Aug 2009, 04:03 PM
  5. 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

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