Results 1 to 10 of 28

Hybrid View

  1. #1
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Importing Database into new Installation

    Quote Originally Posted by MagicMan View Post
    Again, all of the data is in the imported database and viewable via phpmyadmin. The store does not display the contents when viewed though.
    Right, and that's to be expected, since you've got it pointing to the wrong tables in your database:

    Quote Originally Posted by MagicMan View Post
    The Old Config - Exported:
    define('DB_PREFIX', '');

    The new Config - Imported:
    define('DB_PREFIX', 'zen_');
    a) Your old database has no "prefixes" on the table names.
    b) Your new database has "zen_" as a prefix before each table name.
    c) If you imported the "old" database w/o prefixes into your "new" database, you'll see that you have two sets of tables ... one w/o prefixes, and one with.
    Just scroll down the list of tables, and you'll see a complete extra set that start with "zen_".

    So, you need to do two things:
    1. edit your 2 configure.php files, and set the DB_PREFIX to '' (two single quotes)

    2. use phpMyAdmin and manually delete all the tables starting with "zen_".
    Be careful you don't delete other tables starting with the letter Z by mistake.
    .

    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.

  2. #2
    Join Date
    Oct 2007
    Location
    MA, USA
    Posts
    385
    Plugin Contributions
    0

    Default Re: Importing Database into new Installation

    Is there a way that I can do the opposite. Transfer the empty table with the data and rename it to Zen, so that I do not have to go through this again in the future and because I also have 2 other sites that are configured properly and I would like to keep everything symetrical and easy to use.

  3. #3
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Importing Database into new Installation

    If you learn how to do installs on your own, you'll be able to set up new sites as you want them to be.

    I recommend *not* using "zen_" prefixes. "No prefix" is much less complicated.


    I'm not sure what's "complicated" about correcting the DB_PREFIX to match what's needed in your database ... esp since you've got to edit the configure.php files for a move anyway.
    .

    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.

  4. #4
    Join Date
    Oct 2007
    Location
    MA, USA
    Posts
    385
    Plugin Contributions
    0

    Default Re: Importing Database into new Installation

    I got it.

    Yes, I do know how to do a manual installation it just seemed so much easier to do it through CPanel.

    Can I just FTP a backup copy of the original install to my new server?

    If I do this I think I still need to load the Install file and do an installation over before I import the database. Yes?

    Bye the way, thank you for taking the time to discuss this with me it is greatly appreciated..

  5. #5
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Importing Database into new Installation

    Quote Originally Posted by MagicMan View Post
    Can I just FTP a backup copy of the original install to my new server?

    If I do this I think I still need to load the Install file and do an installation over before I import the database. Yes?
    Much like the FAQ I referenced earlier, yes.
    1. FTP the files to the server
    2. PROTECT ... make a backup of ... BOTH configure.php files, and mark the uploaded ones as read-write
    3. Ensure that the zc_install folder is also uploaded (and matches the version of the Zen Cart files you're using)
    4. Run zc_install to set up the database and build configure.php files specific to the new server, being sure to use the same DB_PREFIX.
    5. Import the database backup into the new database.
    6. Login to the admin and fix the session directory, as per the FAQ.

    Basically ... just follow the FAQ :)
    .

    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.

  6. #6
    Join Date
    Oct 2007
    Location
    MA, USA
    Posts
    385
    Plugin Contributions
    0

    Default Re: Importing Database into new Installation

    I resolved the issues. Thank you so much for your assistance. Everything is working fine. Everyone in this forum is top knotch and should be proud of yourselves. Outstanding job.

    Thread can be closed

 

 

Similar Threads

  1. v139h Problem Importing SQL database to new database ready for testing Zencart 1.5
    By gillpotsoffun in forum Upgrading to 1.5.x
    Replies: 8
    Last Post: 24 Aug 2015, 11:24 PM
  2. Importing Customers into ZC from Another Database
    By clausont in forum Managing Customers and Orders
    Replies: 2
    Last Post: 22 Dec 2012, 10:21 PM
  3. Error importing old database to the new database
    By wmorris in forum Upgrading to 1.5.x
    Replies: 1
    Last Post: 3 Jan 2012, 08:27 AM
  4. Replies: 4
    Last Post: 15 Oct 2010, 07:18 AM
  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