Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Dec 2006
    Posts
    27
    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
    9,725
    Plugin Contributions
    13

    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.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

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

    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!
    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
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,725
    Plugin Contributions
    13

    Default Re: SQL - import when upgrading - HELP!

    yep, tried that on one occasion but the host set their own prefix.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

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

    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!
    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
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,725
    Plugin Contributions
    13

    Default Re: SQL - import when upgrading - HELP!

    ABSOLUTELY, should have mentioned that. At least I said use a copy.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  7. #7
    Join Date
    Dec 2006
    Posts
    27
    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
    66,450
    Plugin Contributions
    81

    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!
    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
    Dec 2006
    Posts
    27
    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. Problem with SQL import
    By tragosina in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 18 Dec 2011, 03:19 PM
  2. Got error #1064 when import sql
    By sansan0831 in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 3 Jun 2011, 04:37 PM
  3. 1064 SQL Syntax error when upgrading database from 1.3.8 to 1.3.9
    By pioupioun in forum Upgrading from 1.3.x to 1.3.9
    Replies: 5
    Last Post: 23 Aug 2010, 06:26 AM
  4. Need help with import a large SQL database
    By shahram in forum General Questions
    Replies: 0
    Last Post: 30 Dec 2009, 11:24 AM
  5. SQL Import problem
    By quantum in forum General Questions
    Replies: 6
    Last Post: 22 Jul 2006, 10: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