Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2006
    Location
    Largo, Florida USA
    Posts
    102
    Plugin Contributions
    0

    Database error after installing a download

    I made a slight mistake, although I did make a backup today before hand-
    I installed the Ad Manager download and may have done the Install SQL Patches incorrectly - I have all the files uploaded and modified the code where required but after doing a test order I get this after checkout BUT the order does go through, you just can't see the confirmation page.

    1146 Table 'stakemil_zc.ad_stats' doesn't exist
    in:
    [INSERT INTO ad_stats (orders_id, advertizer_id) VALUES ('524', '')]

    I ran SQL check from my cpanel and their is no ad_stats database and I ran the check and fix errors which come back clean.

    HERE IS THE SQL PATCH
    ;
    ; SQL additions - paste into admin Tools->Install SQL Patches and execute
    ;
    CREATE TABLE advertizers (
    `advertizer_id` int(11) NOT NULL auto_increment,
    `advertizer_name` varchar(40) NOT NULL default '',
    `advertizer_enabled` int(4) NOT NULL default '1',
    PRIMARY KEY (advertizer_id)
    ) TYPE=MyISAM;
    ;
    ; Change these inserts to reflect your advertizing needs...
    ; these populate the drop down menu in the checkout page.
    ; These two are required, you can add more through the Advertizer Manager Tool.
    ; Note: Never delete a advertizers table entry as the stats page assumes that the id's are sequential!!!
    ;
    INSERT INTO advertizers (advertizer_name) VALUES ('This Web Site');
    INSERT INTO advertizers (advertizer_name) VALUES ('Other - describe below in comments area');

    CREATE TABLE ad_stats (
    `orders_id` int(11) NOT NULL ,
    `advertizer_id` int(11) NOT NULL ,
    PRIMARY KEY (orders_id)
    ) TYPE=MyISAM;
    ;
    ; End of SQL additions
    ;

    THIS IS THE RESULT I GET AFTER INSTALLING - HOW MANY TIMES CAN YOU RUN AN SQL PATCH?
    ;
    ; SQL additions - paste into admin Tools->Install SQL Patches and execute
    ;

    1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '; SQL additions - paste into admin Tools->Install SQL Patches and execute' at line 1
    in:
    [; SQL additions - paste into admin Tools->Install SQL Patches and execute ;]
    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.

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

    Default Re: Database error after installing a download

    On all the lines that start with a semi-colon (;), replace that semi-colon with a #

    Don't touch the lines that "end" with a semi-colon after some other text.... only touch the ones that "start" with a ;

    Then rerun via Install SQL Patch
    .

    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. v139h 1064 database error after installing newsletter subscribe module
    By joanna7284 in forum Customization from the Admin
    Replies: 1
    Last Post: 21 Jul 2012, 03:37 AM
  2. Replies: 1
    Last Post: 23 Sep 2010, 09:55 PM
  3. Installing I get gobbledygook after database install
    By silentbob in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 13 Jan 2010, 11:09 AM
  4. Replies: 3
    Last Post: 21 Sep 2008, 12:45 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