Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 08-11-2005, 10:21 PM   #1
LQ Newbie
Registered: Aug 2005
Posts: 6

Rep: Reputation: 0
MySQL syntax problem

I want to import a database to MySQL in Linux. However, when I tried to create table the following error occurs:

ERROR 1064 at line 21: You have an error in your SQL syntax near ') ENGINE=MyISAM DEFAULT CHARSET=latin1' at line 7

The related code is here:

DROP TABLE IF EXISTS `affy_feature`;
CREATE TABLE `affy_feature` (
`affy_feature_id` int(11) NOT NULL auto_increment,
`seq_region_id` int(10) unsigned NOT NULL default '0',
`seq_region_start` int(11) NOT NULL default '0',
`seq_region_end` int(11) NOT NULL default '0',
`seq_region_strand` tinyint(4) NOT NULL default '0',
`mismatches` tinyint(4) default NULL,
`affy_probe_id` int(11) NOT NULL default '0',
`analysis_id` int(11) NOT NULL default '0',
PRIMARY KEY (`affy_feature_id`),
KEY `seq_region_idx` (`seq_region_id`,`seq_region_start`),
KEY `probe_idx` (`affy_probe_id`)

Should I change the code Or use other method to create the table?
Old 08-11-2005, 10:49 PM   #2
LQ Guru
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 124Reputation: 124
I believe its "DEFAULT CHARACTER SET", not "DEFAULT CHARSET". (Source:


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't get pass this mysql syntax error Neruocomp Programming 5 07-24-2005 05:25 PM
MySQL syntax issue michedlp Linux - Software 0 07-17-2004 10:04 AM
mysql syntax question pk21 Linux - General 1 05-18-2004 06:30 AM
Syntax problem thort Linux - Newbie 9 12-22-2003 03:08 PM
A Simple MySQL Query Question (I have Bad Syntax) bpk General 1 12-02-2003 09:04 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:41 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration