| | |
Error #1064
Please support our MySQL advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Sep 2008
Posts: 2
Reputation:
Solved Threads: 0
While i was importing .sql file in my database i got this error #1064.
The actual code written in .sql file is:
Please help this out.
MySQL Syntax (Toggle Plain Text)
#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 'CREATE TABLE IF NOT EXISTS `att_poll_log` ( `id` INT(10) UNSIGNED NOT NULL au' at line 4
The actual code written in .sql file is:
MySQL Syntax (Toggle Plain Text)
CREATE TABLE IF NOT EXISTS `att_poll_log` ( `id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, `news_id` INT(10) UNSIGNED NOT NULL DEFAULT '0', `member` VARCHAR(30) NOT NULL DEFAULT '', PRIMARY KEY (`id`), KEY `news_id` (`news_id`,`member`) ) ENGINE=MyISAM DEFAULT CHARSET=cp1251 AUTO_INCREMENT=19 ;
Please help this out.
Last edited by anuragg21; Jan 3rd, 2009 at 4:42 pm.
Hallu! this page says something about reserved words being used in your query. It also says that this is sometimes caused by a mySQL version mismatch and provides a tip for exporting your database using phpMyAdmin to prevent this error.
Their link to reserved words is outdated. Try this one.
Their link to reserved words is outdated. Try this one.
If you know ASP, you can save other daniweb members from idiots like me by helping out in this forum.
Visit this thread if your username starts with one of the following letters: B D F H J L N P R T X Y Z.
Visit this thread if your username starts with one of the following letters: B D F H J L N P R T X Y Z.
Sorry.. I tried running your query in my localhost (5.0.67) and it didn't generate any error.
If you know ASP, you can save other daniweb members from idiots like me by helping out in this forum.
Visit this thread if your username starts with one of the following letters: B D F H J L N P R T X Y Z.
Visit this thread if your username starts with one of the following letters: B D F H J L N P R T X Y Z.
![]() |
Similar Threads
- MySQL Error 1064 when DELETEing (MySQL)
- MySQL syntax error 1064 (MySQL)
- Error "Syntax" (Windows 95 / 98 / Me)
Other Threads in the MySQL Forum
- Previous Thread: MySQL Cluster 101 Webcast
- Next Thread: Importing A DB Which Is More Than 50MB
| Thread Tools | Search this Thread |
agplv3 alfresco amazon api artisticlicense aws bizspark breathalyzer camparingtocolumns changingprices cmg communityjournalism contentmanagement contractors copyright count court crm database design developer development distinct drupal dui ec2 email enterprise eudora facebook form foss gartner gnu government gpl greenit groupware hiring hyperic images innerjoins insert ip joebrockmeier join keyword keywords kickfire laptop law legal license licensing linux maintenance managing mariadb matchingcolumns metron micromanage microsoft microsoftexchange mindtouch montywidenius mozilla multiple music mysql mysqlcolumnupdating mysqldatetimeordermax() mysqlindex mysqlinternalqueries mysqlquery mysqlsearch news open-xchange opendatabasealliance opengovernment opensource oracle penelope priceupdating query referencedesign reorderingcolumns resultset saas select sharepoint simpledb sourcecode spotify sql sugarcrm syntax techsupport thunderbird transparency virtualization





