Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 2012
    Posts
    19
    Plugin Contributions
    0

    Default How do I write up an SQL query to run from Admin Panel?

    I use the following SQL query successfully from within phpMyAdmin's SQl query window:

    Code:
    UPDATE live_products_description SET products_description = REPLACE (
    products_description,
    'OldKeyword',
    'NewKeyword');
    When I try to run the same from Admin Panel > Tools > Install SQL Patches I get the following error message:

    Failed: 1
    ERROR: Cannot execute because table live_products_description does not exist. CHECK PREFIXES!
    Note: 1 statements ignored. See "upgrade_exceptions" table for additional details.

    What do I need to adjust so that my client can run it directly from Zen Cart's Admin Panel?

    Thanks.

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,536
    Plugin Contributions
    127

    Default Re: How do I write up an SQL query to run from Admin Panel?

    UPDATE products_description ...

    the live_ is taken care of for you by the SQL Patches Tool.
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  3. #3
    Join Date
    Jul 2012
    Posts
    19
    Plugin Contributions
    0

    Default Re: How do I write up an SQL query to run from Admin Panel?

    That's it?! Oh, wow, thank you so much.

  4. #4
    Join Date
    Jul 2012
    Posts
    19
    Plugin Contributions
    0

    Default Re: How do I write up an SQL query to run from Admin Panel?

    Oh, so "check prefixes" doesn't refer to prefixes' spelling but way too subtly hints at their removal. Got it now. Thanks, again.

  5. #5
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: How do I write up an SQL query to run from Admin Panel?

    Quote Originally Posted by GumboStandards View Post
    Oh, so "check prefixes" doesn't refer to prefixes' spelling but way too subtly hints at their removal. Got it now. Thanks, again.
    While the issue occurs more commonly as attempted above, it generally applies to any table. Older code/improperly developed code does not include the DB_PREFIX as part of the table generation. Therefore, the prefix may be properly prepended to a table but the table then not exist... It's kind of a total inspection/check but should be approached from the knowledge that swguy has shared.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

Similar Threads

  1. Replies: 4
    Last Post: 23 Feb 2014, 09:39 PM
  2. v151 SQL query setup. How do I TEST a query 'off-line'?
    By lewisasding in forum General Questions
    Replies: 3
    Last Post: 8 Mar 2013, 12:24 AM
  3. How do I run a MySQL Query ?
    By HeyIts007 in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 17 May 2011, 07:40 PM
  4. 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
  5. SQL error+admin panel
    By characterdriven in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 19 Dec 2006, 03:34 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