Thread: sql help?
View Single Post
Old 08-16-2005, 01:19 PM  
milkit
Confirmed User
 
Industry Role:
Join Date: Jul 2004
Posts: 1,141
sql help?

Trying to import a sql file into a new DB i made.

i get this error when i go to import it

PHP Code:
"MySQL said:  

#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 'DEFAULT CHARSET=latin1' at line 14 " 
and the basics of what im importing is

PHP Code:
DROP TABLE IF EXISTS `exporter`;
CREATE TABLE `exporter` (
  `
gal_idint(11NOT NULL auto_increment,
  `
gal_titletext NOT NULL,
  `
gal_linktext NOT NULL,
  `
site_nametext NOT NULL,
  `
nn_nudevarchar(4NOT NULL default '',
  `
gal_shorttext NOT NULL,
  `
gal_longtext NOT NULL,
  `
num_thumbsint(11NOT NULL default '0',
  `
pic_vidchar(3NOT NULL default '',
  `
thumb_urltext NOT NULL,
  `
site_urltext NOT NULL,
  
PRIMARY KEY  (`gal_id`)
ENGINE=INNODB DEFAULT CHARSET=latin1

Any ideas?
milkit is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote