Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2010
    Posts
    153
    Plugin Contributions
    0

    Default fix my install .sql please someone!! :(

    Ok guys so I had a module made a few month back and i know find myself having to reinstall the module it is mostly just a case of drag and drop and a "simple" sql query to use in the phpmyadmin area on my host's cpanel. well went to install a few days ago and got an error when i tried to run the code through the phpmyadmin and also the admin page for my zen cart. can anyone help me fix the code so it will generate the relevant database required or at least be able to decode the coders reply to a request for support???

    the code is.....

    Code:
    CREATE TABLE IF NOT EXISTS `zen_xboxcodes` (
    `codeid` int(11) NOT NULL auto_increment,
    `code` varchar(29) NOT NULL,
    `type` varchar(255) NOT NULL,
    `order_id` varchar(111) default NULL,
    `used` enum('YES','NO') NOT NULL default 'NO',
    `usedby` varchar(111) default NULL,
    `usedate` datetime NOT NULL,
    PRIMARY KEY (`codeid`),
    UNIQUE KEY `code_2` (`code`),
    KEY `code` (`code`,`type`)
    )
    and the coders response to asking what was wrong with the "easy install pack" i created with his list of modified files was.....

    You did not choose the database to work on.
    You have to select the database to run the sql query.

  2. #2
    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    2,279
    Plugin Contributions
    0

    Default Re: fix my install .sql please someone!! :(

    what error message are you getting ?
    your current zencart database tables using prefix ? this query is trying to create table with zen_ as prefix ..

    you can remove zen_ from the table name .. and use zencart built in sql patch install by copy pasting the code in the box and try to install that way . ..

    back up before you do anything to DB.

  3. #3
    Join Date
    Jan 2010
    Posts
    153
    Plugin Contributions
    0

    Default Re: fix my install .sql please someone!! :(

    thanks for the advice. i tried it in the admin panel and it simply failed but when i tried the exact same code in the myphpadmin on cpanel it worked a treat for some reason. the only downside now is that i created the table xboxship_zencart_xboxcodes but when i go to add a code to the database it comes up with this following error....


    Code:
    1146 Table 'xboxship_zencart.xboxcodes' doesn't exist
    in:
    [INSERT INTO xboxcodes SET code='12345-12345-12345-12345-12345', type = '12mxbl' ]
    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.
    Am I right in thinking that this error is now being caused due to the fact there should be a _ in the coding rather than a . (dot) and i would actually need to find the offending line and edit as the phpmyadmin won't allow me to create the database with a dot

 

 

Similar Threads

  1. Mod Authors: Please read if you are creating install.sql files
    By swguy in forum Contribution-Writing Guidelines
    Replies: 2
    Last Post: 1 Dec 2014, 01:42 AM
  2. Can someone please take a look at this SQL?
    By conor in forum All Other Contributions/Addons
    Replies: 11
    Last Post: 2 Sep 2008, 06:12 PM
  3. Please someone help me.. install.. been trying 4 days now :(
    By POPPYIN in forum Installing on a Windows Server
    Replies: 4
    Last Post: 3 Aug 2008, 02:34 PM
  4. Can someone *please* help me fix my layout problem?
    By gourmets in forum Basic Configuration
    Replies: 7
    Last Post: 13 Feb 2008, 02:28 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