Results 1 to 4 of 4
  1. #1
    Join Date
    May 2008
    Location
    Near the water, somewhere...
    Posts
    126
    Plugin Contributions
    0

    help question Move server-to-server instructions wrong?

    The tutorial on moving from server to server:


    says for step 2a:

    Install## (when asked about the database-table-prefix during
    Database-Setup, use the same prefix that your old store uses)

    Shouldn't those instructions say nothing about the old prefix? After all,
    you're trying to get it to work on the NEW site, so why reference the
    OLD settings?

    DrDoug

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Move server-to-server instructions wrong?

    Er... not quite right.

    You MUST retain the same prefix. The new store will not work at all if you have a prefix in the OLD site, and fail to configure the DB to have exactly that table prefix in the NEW site.
    20 years a Zencart User

  3. #3
    Join Date
    May 2008
    Location
    Near the water, somewhere...
    Posts
    126
    Plugin Contributions
    0

    Default Re: Move server-to-server instructions wrong?

    Thanks!

    I agree--if I'm supporting multiple sites using prefixes,
    then yes, the prefixes need to match.

    However, I'm not supporting multiple sites, and I'm not
    using prefixes in the OLD site, so I'm okay. In the
    heat-of-the-moment it sounds as if the instructions are
    telling me to use the OLD DB [FONT="Georgia"]name[/FONT], but it's not. It's
    reminding me to be accurate in using the OLD DB [FONT="Georgia"]prefix[/FONT].

    DrDoug

  4. #4
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Move server-to-server instructions wrong?

    Any COPY of the old database being used to populate the NEW database will have (by default) a table prefix, if one was used, in the CREATE TABLE sql query.

    EG:

    Code:
    CREATE TABLE IF NOT EXISTS `zen_address_book` (
      `address_book_id` int(11) NOT NULL AUTO_INCREMENT,
      `customers_id` int(11) NOT NULL DEFAULT '0',
      `entry_gender` char(1) COLLATE latin1_general_ci NOT NULL DEFAULT '',
      `entry_company` varchar(64) COLLATE latin1_general_ci DEFAULT NULL,
      `entry_firstname` varchar(32) COLLATE latin1_general_ci NOT NULL DEFAULT '',
      `entry_lastname` varchar(32) COLLATE latin1_general_ci NOT NULL DEFAULT '',
      `entry_street_address` varchar(64) COLLATE latin1_general_ci NOT NULL DEFAULT '',
      `entry_suburb` varchar(32) COLLATE latin1_general_ci DEFAULT NULL,
      `entry_postcode` varchar(10) COLLATE latin1_general_ci NOT NULL DEFAULT '',
      `entry_city` varchar(32) COLLATE latin1_general_ci NOT NULL DEFAULT '',
      `entry_state` varchar(32) COLLATE latin1_general_ci DEFAULT NULL,
      `entry_country_id` int(11) NOT NULL DEFAULT '0',
      `entry_zone_id` int(11) NOT NULL DEFAULT '0',
      PRIMARY KEY (`address_book_id`),
      KEY `idx_address_book_customers_id_zen` (`customers_id`)
    ) ENGINE=MyISAM  DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=3 ;
    If you wanted to set up the NEW database without the zen_prefix, you would either have to manually remove the zen_ prefix from the CREATE TABLE line:

    Code:
    CREATE TABLE IF NOT EXISTS `zen_address_book`
    becomes...

    Code:
    CREATE TABLE IF NOT EXISTS `address_book`
    or... once the database is created, run a query that removes the prefix from ALL table names.

    You must then ensure that the references in the two configure.php files (for the new shop) make no reference to a prefix:

    Code:
      define('DB_PREFIX', 'zen_');
    becomes:
    Code:
      define('DB_PREFIX', '');
    As long as it all matches up, it should work fine.
    20 years a Zencart User

 

 

Similar Threads

  1. Server move - Problem with url and Server/Version Info - please help!
    By bethalicea in forum Installing on a Linux/Unix Server
    Replies: 0
    Last Post: 7 Jun 2009, 10:07 PM
  2. Template images pointing to wrong DIR after server move??
    By StarBuck in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 19 Jun 2008, 06:44 PM
  3. Apache server gone wrong?????
    By MikeyG in forum Installing on a Windows Server
    Replies: 13
    Last Post: 13 Dec 2006, 12:37 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