Win a copy of Head First Android this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

MySQL syntax error when importing from mysql_db_struct.sql

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've received this same error using the installation wizard, attempting a manual import via SQLyog and through the MySQL CLI. The error is as follows follows:

Query:
CREATE TABLE jforum_banlist (
banlist_id INT NOT NULL auto_increment,
user_id INT,
banlist_ip varchar(15),
banlist_email varchar(255),
PRIMARY KEY (banlist_id),
INDEX idx_user (user_id),
INDEX (banlist_ip),
INDEX (banlist_email)
) TYPE=InnoDB

Error occured at:2008-01-14 13:47:14
Line no.:14
Error Code: 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 'TYPE=InnoDB' at line 10

MySQL v5.1

I'm somewhat of a SQL newbie, but I don't see any syntax errors here.

Any help or insight would be much appreciated. Thanks!
[originally posted on jforum.net by evelmike]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
After a bit of digging and help from the guys over at mysql.com, I found that TYPE was a synonym for ENGINE as of MySQL 5.0, but that support appears to have been dropped in MySQL 5.1.

heh, easy fix. Replace TYPE with ENGINE. ;)
[originally posted on jforum.net by evelmike]
 
reply
    Bookmark Topic Watch Topic
  • New Topic