Results 1 to 10 of 16

Hybrid View

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

    Default Re: no database after server move

    What was the DB_PREFIX setting on your old server? (in the configure.php files)
    What is it on your new server?
    If they're not the same, then you won't be seeing the right set of tables in the database.
    .

    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 2007
    Posts
    48
    Plugin Contributions
    0

    Default Re: no database after server move

    Thanks for the responses, I checked both the includes/configure.php and the admin/includes/configure.php files and they both have the same database settings. However, the old servers DB_PREFIX says webstore in admin configure.php which was the folder i used for zencart and the new one says nothing, should i change the new one to webstore?

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

    Default Re: no database after server move

    The database tables are named like this:

    categories
    customers
    orders

    If you have DB_PREFIX set to something other than blank, those tables will be named differently. ie: if DB_PREFIX is set to 'something_', then the tables will have been built using these names instead:

    something_categories
    something_customers
    something_orders

    So ... since your "old" server had a certain DB_PREFIX setting, and that's the data you're carrying forward to your "new" server, you'll need to make sure the DB_PREFIX on your "new" server settings is the same as the "old" server's DB_PREFIX.
    .

    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 2007
    Posts
    48
    Plugin Contributions
    0

    Default Re: no database after server move

    The strange thing is when I installed zencart on the old server I left the prefix blank? so I am not sure why the file is saying the prefix is webstore. Should I run a clean install on the new server and use the DB_PREFIX webstore when I set it up?

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

    Default Re: no database after server move

    Do you have access to phpMyAdmin?

    What are the names of the tables?
    How many tables do you have?
    Do you have any that start with "webstore"?
    Do you perhaps have 2 sets of tables ... one with and one without the prefix?
    .

    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 2007
    Posts
    48
    Plugin Contributions
    0

    Default Re: no database after server move

    just changed the DB_PREFIX to webstore in the configure file and its all appeared and running great!, thanks for all the help I thought I had really messed it up!

  7. #7
    Join Date
    Sep 2007
    Posts
    48
    Plugin Contributions
    0

    Default Re: no database after server move

    I looked in phpmyadmin and you are right DrByte, I seem to have a set that have no prefix and a set that all start with webstore. No clue how I did that. Should I delete all the ones without the webstore prefix?

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

    Default Re: no database after server move

    Probably best to delete the ones you're not using, or you'll end up with confusion again later.

    You "ended up" with them because when you first installed Zen Cart on your server, you didn't specify a table prefix. Thus, it created tables using "nothing" as a prefix.
    Then, you imported your real data that has different tablenames ... and they all sit happily side-by-side not even knowing each other exists. That's the whole reason for prefixes ... to allow multiple sets of data for multiple purposes ... often not even related to Zen Cart.
    .

    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. Not working after server move...
    By kikloo in forum Installing on a Linux/Unix Server
    Replies: 9
    Last Post: 13 May 2011, 04:38 PM
  2. Database problem, server move.
    By altzone in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 14 Jan 2011, 01:53 AM
  3. Move only database to a new server?! Possible?
    By dachilla in forum General Questions
    Replies: 1
    Last Post: 25 Nov 2008, 08:54 AM
  4. Database problem with server move
    By Woody619 in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 20 Aug 2007, 07:13 PM
  5. errors after server move
    By wmunn in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 10 Jun 2007, 04:23 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