Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1
    Join Date
    Sep 2007
    Posts
    48
    Plugin Contributions
    0

    Default no database after server move

    Hi,
    Hope someone can help me with this. I moved my zencart store from one server to another following the instructions in the tutorials.

    I backed up the old database tables with phpmyadmin and repopulated the new database with the sql file. All seems ok with the database as it has the same amount of tables as the old one.

    I have checked both the configure files and they have the correct paths. I have also run the fix cache key and that is reporting the correct path. Thing is when I open the site there are no products although the database is fully populated with over 100 products. Also when I log into admin, it says 0 products but the sessions path is correct

    site address is http://www.directtropicals.co.uk.

    I would be most grateful if someone can help as it is beyond my knowledge on what it could be.

    Thanks
    Skip

  2. #2
    Join Date
    Nov 2006
    Location
    Papworth, Cambridgeshire, UK
    Posts
    731
    Plugin Contributions
    3

    Default Re: no database after server move

    You should have a look at the products and categories tables with phpMyAdmin or similar, and see if the tables have anything in them.

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

    Default Re: no database after server move

    Thanks for the advice, I had a look and there is no products in there. Am I doing something wrong when I import the database?

  4. #4
    Join Date
    Nov 2006
    Location
    Papworth, Cambridgeshire, UK
    Posts
    731
    Plugin Contributions
    3

    Default Re: no database after server move

    Check the SQL backup/export file from your original database. There is sometimes a 'USE database_name' included, which would obviously be the original database, not the new one. If so, change it to the new one, comment it out or delete it.

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

    Default Re: no database after server move

    Have done that and reimported and still says products 0.

    If I look at my original database it says products 0 but it is fully operational on my test site with about 200 products? Im not very good at this stuff but is that odd?

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

    Default Re: no database after server move

    Just to add to my confusion, when I log into admin now after redoing import, all my products are in there but still no sign on the site?

  7. #7
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,421
    Plugin Contributions
    11

    Default Re: no database after server move

    could be your database setting in includes/configure.php if they show up in admin and not the cart. Make sure you set the includes/configure.php database settings the same as the ones in admin/includes/configure.php

  8. #8
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    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.

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

  10. #10
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    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.

 

 
Page 1 of 2 12 LastLast

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

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR