If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > MySQL ERROR 1064

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-05-08, 10:25
TIbb TIbb is offline
Registered User
 
Join Date: Jun 2008
Posts: 2
MySQL ERROR 1064

I have this php file that sets up a MySQL database for me using a .CSV file. I used it on one SQL database and then transfered it over to a different server. Now when i run database_setup.php i get this error

"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 ') ENGINE = MYISAM CHARACTER SET utf8 COLLATE utf8_general_ci' at line 1 "

The line "ENGINE = MYISAM CHARACTER SET utf8 COLLATE utf8_general_ci" is the error i guess but i don't know how to find out what to change it too.

Could anyone help me with this?
Reply With Quote
  #2 (permalink)  
Old 06-05-08, 16:29
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,525
it's the dangling comma aftyer the `banner` column, just in front of the parenthesis in front of ENGINE

how do i know this? you didn't even post your CREATE TABLE statement!!!

i can see your query from here, using Microsoft® CrystalBall©

__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On