Thread: mysql error

Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2005
    Posts
    115
    Plugin Contributions
    0

    Default mysql error

    hello, im trying to install the 2checkout module but i get this error =

    Error
    SQL query:

    CREATE TABLE `2checkout` (

    `2co_id` INT( 11 ) NOT NULL AUTO_INCREMENT ,
    `start_time` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
    `finish_time` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
    `status` VARCHAR( 50 ) CHARACTER SET latin1 COLLATE latin1_general_ci NOT NULL ,
    `return_md5` TEXT CHARACTER SET latin1 COLLATE latin1_general_ci NOT NULL ,
    `amount` FLOAT NOT NULL DEFAULT '0',
    `2co_order_id` INT( 11 ) NOT NULL DEFAULT '0',
    `session_id` VARCHAR( 50 ) CHARACTER SET latin1 COLLATE latin1_general_ci NOT NULL
    ) ENGINE = MYISAM CHARACTER SET latin1 COLLATE latin1_general_ci

    MySQL said:

    #1075 - Incorrect table definition; there can be only one auto column and it must be defined as a key

  2. #2
    Join Date
    Sep 2004
    Posts
    1,388
    Plugin Contributions
    4

    Default Re: mysql error

    I don't know anything about the module, but you could add the following line to the SQl query...
    Code:
    PRIMARY KEY  (2co_id)
    so the end code would look like this...
    Code:
    CREATE TABLE `2checkout` (
    `2co_id` INT( 11 ) NOT NULL AUTO_INCREMENT ,
    `start_time` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
    `finish_time` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
    `status` VARCHAR( 50 ) CHARACTER SET latin1 COLLATE latin1_general_ci NOT NULL ,
    `return_md5` TEXT CHARACTER SET latin1 COLLATE latin1_general_ci NOT NULL ,
    `amount` FLOAT NOT NULL DEFAULT '0',
    `2co_order_id` INT( 11 ) NOT NULL DEFAULT '0',
    `session_id` VARCHAR( 50 ) CHARACTER SET latin1 COLLATE latin1_general_ci NOT NULL
    PRIMARY KEY  (2co_id)
    ) ENGINE = MYISAM CHARACTER SET latin1 COLLATE latin1_general_ci
    /edit: I recommend you visit the support thread for this module before you do any editing, however.
    Last edited by BlindSide; 13 Oct 2006 at 10:51 PM. Reason: Better first step recommendation
    Frank Koehl
    "Cleverly Disguised as a Responsible Adult"

    frankkoehl.com

  3. #3
    Join Date
    Oct 2005
    Posts
    115
    Plugin Contributions
    0

    Default Re: mysql error

    y but im not good at this i dont understand how to make PRIMARY KEY (2co_id)

 

 

Similar Threads

  1. Fatal error: mysql error (1064 error) -- v1.0-alpha
    By Dale Schibbelhut in forum General Questions
    Replies: 9
    Last Post: 18 Nov 2010, 08:08 PM
  2. MySQL Error 1064 You have an error in your SQL syntax;
    By dmm2020 in forum General Questions
    Replies: 2
    Last Post: 22 Feb 2009, 05:02 AM
  3. Dreaded mYSQL 1064 error when importing MySQL 4 database into MySQL5
    By dml311071 in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 10 Jun 2008, 05:38 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