Results 1 to 6 of 6
  1. #1
    Join Date
    Jul 2004
    Posts
    115
    Plugin Contributions
    0

    help question New install - different host - fine until database

    Hi all, I am moving a working ZenCart to a new host. I have both installs in the most recent version. Everything was going fine until I dropped my (new) database and tried to replace it with my (old) database.

    When I try and use the fix cache key I get this error message.

    1146 Table 'han082780907019a.zenconfiguration' doesn't exist
    in:
    [select configuration_key as cfgkey, configuration_value as cfgvalue from zenconfiguration]


    I have no clue what it means or how to fix it.

    When I go to the admin area I get this error code:
    1146 Table 'han082780907019a.project_version' doesn't exist
    in:
    [select * from project_version WHERE project_version_key = 'Zen-Cart Database' ]
    If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.


    And the store front shows this error code:
    1146 Table 'han082780907019a.zenconfiguration' doesn't exist
    in:
    [select configuration_key as cfgkey, configuration_value as cfgvalue from zenconfiguration]

    I am a sql newb and really need some help. I have been at this all week with no joy.

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

    Default Re: New install - different host - fine until database

    You probably have skipped the step about preserving the right table prefix (DB_PREFIX) as mentioned in the FAQ on moving to a new server: https://www.zen-cart.com/tutorials/i...hp?article=100
    .

    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
    Jul 2004
    Posts
    115
    Plugin Contributions
    0

    Default Re: New install - different host - fine until database

    Quote Originally Posted by DrByte View Post
    You probably have skipped the step about preserving the right table prefix (DB_PREFIX) as mentioned in the FAQ on moving to a new server: https://www.zen-cart.com/tutorials/i...hp?article=100
    Thanks. Is there any way to fix it without starting from scratch?

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

    Default Re: New install - different host - fine until database

    Set the DB_PREFIX on the new server to match the one on the old server.
    Or, manually rename the hundred or so tables by hand.
    .

    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.

  5. #5
    Join Date
    Jan 2005
    Location
    Winter Haven, FL
    Posts
    163
    Plugin Contributions
    0

    Default Re: New install - different host - fine until database

    just want to make sure I understand before I start - I am moving DB's and my site to another server and I want to lose the zen_ prefix I put in ages ago. My two config files need to lose the zen_ prefix and then I need to manually rename my 100 tabels - leaving off the zen_ prefix - right? Is there a quick sql patch that just renames everything for me? Thanks in advance for your help

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

    Default Re: New install - different host - fine until database

    In the zc_install process you use for installing and upgrading, there is a prefix-rename option on the database-upgrade screen.
    .

    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. Replies: 1
    Last Post: 4 Jan 2013, 06:13 AM
  2. Host install (create new DB and migrate data) or manual install (point to old DB)?
    By kirkbross in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 25 Nov 2012, 09:11 PM
  3. Different host Same database?
    By Derrian in forum General Questions
    Replies: 1
    Last Post: 30 Aug 2009, 07:59 AM
  4. Fresh install of 1.3.0.2 on a new host server - problem with database
    By henrygoh in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 14 Jul 2006, 09: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