CAN SOME ONE PLEASE HELP ME FIX THIS SO THAT I CAN UP LOAD THIS FILE ???? Error SQL query: CREATE TABLE `articles` ( `id` int( 10 ) NOT NULL AUTO_INCREMENT , `own_id` bigint( 20 ) NOT NULL default '0', `title` varchar( 200 ) NOT NULL default '', `image` varchar( 200 ) NOT NULL default '', `leadin` longtext NOT NULL , `text` longtext NOT NULL , `category` int( 6 ) NOT NULL default '0', `date` bigint( 20 ) NOT NULL default '0', `verified` enum( '1', '0' ) NOT NULL default '0', PRIMARY KEY ( `id` ) , KEY `own_id` ( `own_id` , `category` , `date` , `verified` ) ) ENGINE = MYISAM DEFAULT CHARSET = latin1 AUTO_INCREMENT =33; 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 AUTO_INCREMENT=33' at line 13
I ran it as a direct query in PHPMyAdmin and it worked for me. If you are attempting to import this query as a file then perhaps there is something funky in the file causing the problem. Otherwise, maybe some sort of problem due to you having a different version of MySQL than I do? I am not a MySQL expert but I thought this much might help.
Run this before running the create query: DROP TABLE IF EXISTS `articles`; Also try removing the part AUTO_INCREMENT =33;
it's most probably related to your database configuration such as charset and language config.. or maybe event database version conflict... try to run the script like this... it shouldn't give you any versioning problems CREATE TABLE `articles` ( `id` int( 10 ) NOT NULL AUTO_INCREMENT , `own_id` bigint( 20 ) NOT NULL default '0', `title` varchar( 200 ) NOT NULL default '', `image` varchar( 200 ) NOT NULL default '', `leadin` longtext NOT NULL , `text` longtext NOT NULL , `category` int( 6 ) NOT NULL default '0', `date` bigint( 20 ) NOT NULL default '0', `verified` enum( '1', '0' ) NOT NULL default '0', PRIMARY KEY ( `id` ) , KEY `own_id` ( `own_id` , `category` , `date` , `verified` ) ) ENGINE = MYISAM AUTO_INCREMENT =33;