Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Sep 2009
    Posts
    35
    Plugin Contributions
    0

    Default Need help transferring database --> Database needs to be loaded onto 2 other sites.

    Hey guys,

    I've been able to export the database to excel, however I'm not sure how to export and upload that information to two of my other sites.

    As opposed to setting up each individual category and product listing I was hoping to just dump everything onto each of the other servers..

    Is this possible? Would I need to re-upload all of the photos and product details?

    Thanks!

    Ryan

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

    Default Re: Need help transferring database --> Database needs to be loaded onto 2 other site

    You would follow this approach if you wanted to move to another server, or install a copy of the site on another server: https://www.zen-cart.com/tutorials/i...hp?article=100

    And, yes, you'll need to copy all your images along with all the other files as mentioned in the article.
    .

    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.

  3. #3
    Join Date
    Sep 2009
    Posts
    35
    Plugin Contributions
    0

    Default Re: Need help transferring database --> Database needs to be loaded onto 2 other site

    Okay I've followed those instructions, I've exported my database from my old server and uploaded all of my files from the old site to the new one. Once I've finished that step I've removed all the tables from the new (clean) database, and imported all of the tables from the old SQL database.

    Unfortunately I keep getting this message.

    1146 Table 'locker_zencart.configuration' doesn't exist
    in:
    [select configuration_key as cfgkey, configuration_value as cfgvalue from configuration]

    I made sure that before I exported anything from my old site that I updated my old version of ZenCart. I'm wondering if there is a slight problem because my old site used a slightly older version of mySQL.

  4. #4
    Join Date
    Sep 2009
    Posts
    35
    Plugin Contributions
    0

    Default Re: Need help transferring database --> Database needs to be loaded onto 2 other site

    As opposed to loading the tables manually using PHPMyAdmin I've created a database back up which I've uploaded to my new server.

    Unfortunately, the name is different and I can't just substitute it in for the new database. Without access to the Admin, how do I point ZenCart to look at a new database?

  5. #5
    Join Date
    Sep 2009
    Posts
    35
    Plugin Contributions
    0

    Default Re: Need help transferring database --> Database needs to be loaded onto 2 other site

    Quote Originally Posted by DrByte View Post
    You would follow this approach if you wanted to move to another server, or install a copy of the site on another server: https://www.zen-cart.com/tutorials/i...hp?article=100

    And, yes, you'll need to copy all your images along with all the other files as mentioned in the article.

    So to try and set the database to my old database I reran the ZC_Install folder.

    When I pointed it towards my old database it spewed out this message..

    1146 Table 'locker_zc1.configuration' doesn't exist
    in:
    [update configuration set configuration_value='/home/locker/public_html/catalog/cache' where configuration_key = 'SESSION_WRITE_DIRECTORY']

    I think I might be running into a 1.3.8 vs 1.3.8a issue here or an old ver. mySQL database won't work with this one.

    I'm puzzled and don't really know what to do.

  6. #6
    Join Date
    Sep 2009
    Posts
    35
    Plugin Contributions
    0

    Default Re: Need help transferring database --> Database needs to be loaded onto 2 other site

    Figured it out.

    The database name for the old server was iterotics_zc1 and on the new server its locker_zencart.

    Unfortunately with my host all SQL databases must start with the site username_(databasename) so I don't see a way around this.

    Help?

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

    Default Re: Need help transferring database --> Database needs to be loaded onto 2 other site

    The DB_xxxxxxx settings in your configure.php file control the database access details.
    .

    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
    Sep 2009
    Posts
    35
    Plugin Contributions
    0

    Default Re: Need help transferring database --> Database needs to be loaded onto 2 other site

    Quote Originally Posted by DrByte View Post
    The DB_xxxxxxx settings in your configure.php file control the database access details.
    Okay well what I'm trying to figure out is that if my database on my old server is..


    it_zc1

    and the db name on my new server is

    locker_zc1

    Will this inhibit me from transferring everything over?

    I've found the FAQ about this exact problem, however the only way I can create a database on my new server with the exact name as the old database is by going into phpMyAdmin in the WHM right on my server.

    Unfortunately, what that means is when I log into the website, I can't see that database through the sql database management system in the cpanel.

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

    Default Re: Need help transferring database --> Database needs to be loaded onto 2 other site

    No, the 2 databases don't have to have the same "name". Just set the new server's name in the configure.php file. That would have already been done for you when you ran zc_install by following the FAQ I pointed you to earlier.

    You're probably using different DB_PREFIX values on the different servers, thus causing the tables to not be found. The FAQ article also mentions this point as something to address during the move process. Maybe you missed that?
    .

    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.

  10. #10
    Join Date
    Sep 2009
    Posts
    35
    Plugin Contributions
    0

    Default Re: Need help transferring database --> Database needs to be loaded onto 2 other site

    Quote Originally Posted by DrByte View Post
    No, the 2 databases don't have to have the same "name". Just set the new server's name in the configure.php file. That would have already been done for you when you ran zc_install by following the FAQ I pointed you to earlier.

    You're probably using different DB_PREFIX values on the different servers, thus causing the tables to not be found. The FAQ article also mentions this point as something to address during the move process. Maybe you missed that?
    Yes I did miss that. You are referring to this part here?

    Store Identifier (Table-Prefix)

    What is the prefix you would like used for database tables? Example: zen_ Leave empty if no prefix is needed.
    You can use prefixes to allow more than one store to share the same database. more info...

    So as it stands right now...

    In my cPanel I see my database it is called

    locker_zc1

    my database is locker and my prefix is zc1?

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Database needs to be upgraded Need Help!!
    By OCHSweb in forum Upgrading to 1.5.x
    Replies: 3
    Last Post: 10 Dec 2014, 11:48 PM
  2. v138a Transferring database to new server
    By rand486 in forum General Questions
    Replies: 4
    Last Post: 11 Jul 2012, 04:23 PM
  3. "Connection to Database failed" upon install - I think I need database name help
    By jasong1968 in forum Installing on a Linux/Unix Server
    Replies: 7
    Last Post: 30 Nov 2011, 10:50 AM
  4. Help. Database needs patched?
    By Bunnywinkles in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 25 Feb 2010, 02:16 AM
  5. Question about transferring database...
    By rebekah in forum Upgrading from 1.3.x to 1.3.9
    Replies: 0
    Last Post: 18 Nov 2006, 09:23 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