Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Dec 2006
    Posts
    25
    Plugin Contributions
    0

    Default SQL - import when upgrading - HELP!

    [FONT=Calibri]Ok so we have swapped servers[/FONT]

    [FONT=Calibri]Our new one is php 5.2.0, so have no option but to install v1.3.7, otherwise a fatal error on admin logon develops. [/FONT]

    [FONT=Calibri]So installed v1.3.7 - working fine with a brand new database. [/FONT]
    [FONT=Calibri]However when I try to drop the old SQL tables into the new database I get the following error: [/FONT]

    [FONT=Calibri]"1146 Table 'cotharyy_zenCS.configuration' doesn't exist
    in:
    [select configuration_key as cfgkey, configuration_value as cfgvalue from configuration]"
    [/FONT]

    This is a reference to the old database, not the new one

    Can anyone help out a confused person with little knowledge (enough to be dangerous though!!!)

  2. #2
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    5,048
    Plugin Contributions
    6

    Default Re: SQL - import when upgrading - HELP!

    It appears that your prefixes for the two databases do not match. If the old was zencart_configuration and was trying to load into zen_configuration, you'd get this kind of problem. Try using a text editor to change a SAVED version of the sql file to change the prefixes.
    Did you read the posting tips?!?
    Things We've Done
    MOD: Scheduled Events

  3. #3
    Join Date
    Jan 2004
    Posts
    58,464
    Blog Entries
    3
    Plugin Contributions
    111

    Default Re: SQL - import when upgrading - HELP!

    ... or just be sure to use the same DB_PREFIX setting in your new configure.php files as you were using in the old configure.php files prior to the move.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    5,048
    Plugin Contributions
    6

    Default Re: SQL - import when upgrading - HELP!

    yep, tried that on one occasion but the host set their own prefix.
    Did you read the posting tips?!?
    Things We've Done
    MOD: Scheduled Events

  5. #5
    Join Date
    Jan 2004
    Posts
    58,464
    Blog Entries
    3
    Plugin Contributions
    111

    Default Re: SQL - import when upgrading - HELP!

    Fair enough.

    I'm just hesitant to tell anyone to do a global search/replace because unless they manually check EACH instance before replacing, they "might" be editing wrong stuff.
    Some folks assume that they can fix their SQL content by renaming "zen_" is safe ... when it's actually very dangerous.
    Just something that needs to be kept in mind when doing search/replaces.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    5,048
    Plugin Contributions
    6

    Default Re: SQL - import when upgrading - HELP!

    ABSOLUTELY, should have mentioned that. At least I said use a copy.
    Did you read the posting tips?!?
    Things We've Done
    MOD: Scheduled Events

  7. #7
    Join Date
    Dec 2006
    Posts
    25
    Plugin Contributions
    0

    Default Re: SQL - import when upgrading - HELP!

    Thanks all, now have zencart up and running having manually renamed the files. I now have a Your database appears to need patching to a higher level. See Tools->Server Information to review patch levels. Here it shows Zen Cart 1.3.7.1 Database Patch level: 1.3.6

    PHP Version: 5.2.0 (Zend: 2.2.0)
    Database Host: localhost (127.0.0.1)
    Database: MySQL 5.0.27-standard

    What is the best way to fix this?

  8. #8
    Join Date
    Jan 2004
    Posts
    58,464
    Blog Entries
    3
    Plugin Contributions
    111

    Default Re: SQL - import when upgrading - HELP!

    Quote Originally Posted by cotswold View Post
    Your database appears to need patching to a higher level. See Tools->Server Information to review patch levels. Here it shows Zen Cart 1.3.7.1 Database Patch level: 1.3.6
    You need to run zc_install/index.php, choose Database Setup on the inspection screen, and complete the upgrade steps checked.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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
    Dec 2006
    Posts
    25
    Plugin Contributions
    0

    Default Re: SQL - import when upgrading - HELP!

    Great that fixed the problem, thanks for your help.

  10. #10
    Join Date
    Feb 2006
    Location
    From my home
    Posts
    37
    Plugin Contributions
    0

    Default run zc_install/index.php, choose Database Setup

    Dear Dr. Byte, I followed your instructions to Cotswold, but after running for several minutes the window just went blank, white to be specific.

    So I went back to the beginning of the install and went through clicking Continue and then agreeing to the terms and at the update page typing in my username and password and then clicking Update Database, but the screen went blank right away.

    So I cleared my cache files and did it all again, this time it went the same as the first time, blank after a very long time of what appeared to be working. About 1:00am I went to bed. When I tried it this morning it's still the same.

    So what do I do now? I'm stuck.... please help me Dr.

    Thank you

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. How to import SQL file to Database?
    By lina0962 in forum Addon Shipping Modules
    Replies: 1
    Last Post: 5 Jan 2007, 11:18 PM
  2. Error with SQL database import
    By LadySyren in forum General Questions
    Replies: 3
    Last Post: 26 Dec 2006, 03:21 PM
  3. Upgrading SQL DB from 1.2.7 to 1.3.5
    By tcustomgolf in forum Upgrading from 1.2 to 1.3.x
    Replies: 5
    Last Post: 27 Sep 2006, 10:25 AM
  4. SQL Import problem
    By quantum in forum General Questions
    Replies: 6
    Last Post: 22 Jul 2006, 10:37 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
  •