Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2007
    Posts
    69
    Plugin Contributions
    0

    Default switching servers, error when i load up database

    hello-

    ive been at this all day and am nearing my wits end. the installation process at my new server is quite a bit different than at my previous one. that being said, upon my initial install, i received this message:

    1146 Table 'bridgetb_zc1.zen_db_cache' doesn't exist
    in:
    [db_cache table]

    i tried changing the permissions on the cache folder (didnt do anything), tried deleting the cache_data in phpMyadmin (didn't do anything), and i tried reinstalling zencart by simply loading up the zc_install folder again and starting from scratch. THAt led to a whole slew of problems where i couldn't get past the screen which asked for the database username, password, host, etc (double checked and triple checked my passwords, directories, etc, and still somehow something was wrong). so then i went back and used my hosting company's quick zen-cart install, which seemed to go fine until i imported the database. that got me right back to the error listed above.

    the domain for the new site is actually only accessible via IP address: 74.54.1.159 . reason being, the domain for which im installing zen has a site that is up and running at the previous host

    could really use a hand w/ this one; apologies if this is somewhere else, im just really confused and feel like im coming up against a lot of brick walls.

    thanks much

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

    Default Re: switching servers, error when i load up database

    Quote Originally Posted by mellonade View Post
    1146 Table 'bridgetb_zc1.zen_db_cache' doesn't exist
    The message means that the table named "zen_db_cache" in the "bridge_tb" database doesn't exist.
    Zen Cart's tables don't normally have "zen_" in them (unless you installed v1.2 at some point). However, the "zen_" prefix would be specified in your DB_PREFIX setting in your configure.php files.

    So ... check:
    a) what are the table-names like in your *old* database? Do they all have "zen_" prefixes ? if so, then you likely also have DB_PREFIX set to "zen_" in your *old* configure.php files.

    b) for the host-provided installer, maybe *it* is using the "zen_" prefix which doesn't match your imported database content?

    It's crucial that your DB_PREFIX settings are the same in the new site as you had in the old site.

    FAQ on the move-to-new-server process:
    https://www.zen-cart.com/tutorials/index.php?article=99
    and
    http://www.zen-cart.com/wiki/index.p...Switch_Servers
    .

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

    Default Re: switching servers, error when i load up database

    b) for the host-provided installer, maybe *it* is using the "zen_" prefix which doesn't match your imported database content?
    since my new host does everything in the zen install for you except set the admin username and password, i wasn't able set what i wanted for my db prefix. on my old database, i didnt use a prefix; on the new server, the host automatically generated zen_ as my prefix.

    so, all i did was go into the configure.php files and delete the "zen_" for the db prefix section.

    thanks very much for your help, in retrospect it was more obvious than i thought, just wasn't looking in the right place .

    mind if i ask one more thing? since im setting up zen for a domain name thats already in use, how can i test the new install to make sure it works fine? each link i click on inevitably takes me to the live site b/c the domain names are the same. should i make a fresh install it on a subdomain on the new server, and then when ive made sure it works properly, just follow these instructions (zen wiki: moving zencart folder on server) and move it to the appropriate directory?

    thanks again

  4. #4
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: switching servers, error when i load up database

    Quote Originally Posted by mellonade View Post
    since im setting up zen for a domain name thats already in use, how can i test the new install to make sure it works fine? each link i click on inevitably takes me to the live site b/c the domain names are the same. should i make a fresh install it on a subdomain on the new server, and then when ive made sure it works properly, just follow these instructions (zen wiki: moving zencart folder on server) and move it to the appropriate directory?
    That's one way to do it, yes.
    Or you could do it on an entirely different domain and move it all over when you're ready to go live.
    etc.
    .

    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. Switching Servers!
    By kdipaolo in forum General Questions
    Replies: 3
    Last Post: 15 Jun 2012, 09:45 PM
  2. Replies: 1
    Last Post: 22 Oct 2011, 01:13 AM
  3. Switching servers...
    By Jeffries Productions in forum General Questions
    Replies: 1
    Last Post: 14 Aug 2010, 04:29 AM
  4. error in path (function.session-save-path) after switching servers
    By stitch in forum Installing on a Linux/Unix Server
    Replies: 7
    Last Post: 16 Feb 2010, 09: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