Results 1 to 10 of 14

Hybrid View

  1. #1
    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.

  2. #2
    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?

  3. #3
    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 "prefix" would be the letters added to the beginning of all the names of your tables inside your database. It has NOTHING to do with the name of the database itself.

    It's simple. Table names might be like this:
    "address_book"
    "customers"
    "orders"

    and if you have a "prefix" added to the beginning of those names, they might look like:
    "myprefix_address_book"
    "myprefix_customers"
    "myprefix_orders"
    ... in which case your prefix would be "myprefix_" ... as shown in the DB_PREFIX setting in *that* server's configure.php files.
    .

    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
    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 "prefix" would be the letters added to the beginning of all the names of your tables inside your database. It has NOTHING to do with the name of the database itself.

    It's simple. Table names might be like this:
    "address_book"
    "customers"
    "orders"

    and if you have a "prefix" added to the beginning of those names, they might look like:
    "myprefix_address_book"
    "myprefix_customers"
    "myprefix_orders"
    ... in which case your prefix would be "myprefix_" ... as shown in the DB_PREFIX setting in *that* server's configure.php files.
    Awesome.

    Okay now how do I go back and change the prefix after I've already installed Zen Cart.

    I finally figured out what the problem is!

    Thanks so much!

  5. #5
    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

    Is there a reason not to install clean, using the right prefix, now that the light has come on?
    .

    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
    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
    Is there a reason not to install clean, using the right prefix, now that the light has come on?
    I already started a clean install.

    Thanks.

 

 

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