Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2009
    Posts
    102
    Plugin Contributions
    0

    Default Cannot run SQL scripts

    My upgrade procedure...

    1. Installed a test version of my live 1.3.9h store to a new folder and a new database. Checked that everything was working fine. OK.
    2. Uninstalled all addons. Checked core functions. OK.
    3. Uploaded 1.5.1 files (overwrite all) and started /zc_install
    4. System check = all green --> Upgrade.
    5. Checkboxes 1.3.9-->1.5.0 and 1.5.0-->1.5.1 checked. Prefix (no change): zen_ . Upgrade database.
    6. Errors:
    Code:
    SKIPPED: Cannot drop index page_accessed on table admin_activity_log because it does not exist.
    SKIPPED: Cannot drop index access_date on table admin_activity_log because it does not exist.
    SKIPPED: Cannot add index idx_page_accessed_zen to table admin_activity_log because it already exists.
    SKIPPED: Cannot add index idx_access_date_zen to table admin_activity_log because it already exists.
    7. These errors are stored in table zen_upgrade_exceptions

    8. Screen from admin_activity_log after above


    8. If I then try to install a SQL update through the admin interface (say http://www.zen-cart.com/downloads.php?do=file&id=868) the following errors turn up:


    The same error (ERROR: Cannot insert configuration_key "" because it already exists) is displayed regardless of which 1.5.1 addon I try to install.

    9. The errors from admin sql are then stored in exceptions with double prefixes



    What's up? My configures.php files defines "define('DB_PREFIX', 'zen_');". I've even tested to change and remove the prefix in step 5 above to no avail. The prefix (zen_) stays in the database.

    My database account has all privileges.


    Note that I recover my 1.3.9 database every time between tests.
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	Capture.JPG 
Views:	77 
Size:	27.4 KB 
ID:	12250   Click image for larger version. 

Name:	Capture-sql.JPG 
Views:	76 
Size:	28.3 KB 
ID:	12251   Click image for larger version. 

Name:	Capture-pma.JPG 
Views:	73 
Size:	31.9 KB 
ID:	12252  


  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Cannot run SQL scripts

    Those alerts can be ignored
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Mar 2009
    Posts
    102
    Plugin Contributions
    0

    Default Re: Cannot run SQL scripts

    Quote Originally Posted by kobra View Post
    Those alerts can be ignored
    Which ones do you mean? All of them?

    Btw, I solved the installation issues by using phpmyadmin instead and changing the table references in the scripts. I.e.
    Code:
    INSERT INTO configuration_group (`configuration_group_title`,`configuration_group_description`,`sort_order`,`visible`) VALUES ('...
    to
    Code:
    INSERT INTO zen_configuration_group (`configuration_group_title`,`configuration_group_description`,`sort_order`,`visible`) VALUES ('...
    But I still want to know why the scripts don't recognize my prefix...

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Cannot run SQL scripts

    Which ones do you mean? All of them?
    The four you posted
    Zen-Venom Get Bitten

 

 

Similar Threads

  1. run sql file?
    By jwebster8 in forum General Questions
    Replies: 1
    Last Post: 25 Mar 2008, 05:41 PM
  2. How do I run the stock_attribute.sql via Install SQL Patches in admin
    By vivaraquel in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 9 Apr 2007, 01:55 AM
  3. Cannot run zc_install
    By stembo43 in forum Installing on a Linux/Unix Server
    Replies: 5
    Last Post: 10 Nov 2006, 04:49 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