Results 1 to 6 of 6
  1. #1
    Join Date
    Mar 2007
    Posts
    25
    Plugin Contributions
    0

    Default Restoring part of an .sql file

    I have an .sql file, the backup of my old ZC site made before switching hosts. I have reinstalled ZC on the new host but would like to restore the category names, descriptions, and images, from my .sql backup. Is there anyway I can do this?

    My host is running cPanel 11, I have phpMyAdmin access, but can't find anything to import only partially. Thanks.

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Restoring part of an .sql file

    Is there a reason that you only want a partial?

    Normally the full DB is restored and if there is a version difference then the zc_install is re-run and the upgrade DB only is selected

  3. #3
    Join Date
    Mar 2007
    Posts
    25
    Plugin Contributions
    0

    Default Re: Restoring part of an .sql file

    Hi, the reason I only want a partial is that on the old store, I only did work on the categories, subcats, and their descriptions and images. I don't want to lose this, but I also don't want to import that entire DB because I've changed a lot of settings on the new store and don't want to lose those changes.

    Dumb situation I got myself in.

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Restoring part of an .sql file

    Really depends because many tables are cross indexed for speed and depending on what modules you might have added and what DB entries they affect will this be a success

  5. #5
    Join Date
    Mar 2007
    Posts
    25
    Plugin Contributions
    0

    Default Re: Restoring part of an .sql file

    So basically I'm screwed? :)

  6. #6
    Join Date
    Jan 2004
    Posts
    66,447
    Plugin Contributions
    81

    Default Re: Restoring part of an .sql file

    If you know which tables to restore data from, and don't mind dumping all related data from your "new" database, you can delete the new data, and bring the data from the old one into the new one.

    It's not exactly a task intended for those not well-versed in database management.

    The list of tables storing certain types of data can be found here:
    http://www.zen-cart.com/wiki/index.p...atabase_Schema
    .

    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.

 

 

Similar Threads

  1. Replies: 2
    Last Post: 25 Sep 2008, 10:27 PM
  2. Restoring SQL database?
    By kevinmc3 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 4 Apr 2008, 12:15 AM
  3. Set a File Upload as Part of Checkout
    By jaxbakers in forum Basic Configuration
    Replies: 2
    Last Post: 5 Jul 2006, 02:50 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