The sql runs fine using phpMyAdmin.
Code: Select all
CREATE TABLE phpbb_chatbox_auth (
`chat_id` int(11) NOT NULL,
`group_id` int(11) NOT NULL,
`speak` tinyint(3) default '0',
PRIMARY KEY ( `chat_id`, `group_id` )
);
Code: Select all
FATAL ERROR: Unable to parse SQL statement; [KEY ( `user_id` ]
CREATE TABLE phpbb_chatbox_session ( `user_id` int(11) NOT NULL, `chat_id` int(11) NOT NULL, `lastactive` int(10) DEFAULT '0' NOT NULL, PRIMARY KEY ( `user_id`, `chat_id` ) )
http://dev.mysql.com/doc/refman/5.0/en/create-table.html wrote: A PRIMARY KEY can be a multiple-column index. However, you cannot create a multiple-column index using the PRIMARY KEY key attribute in a column specification. Doing so only marks that single column as primary. You must use a separate PRIMARY KEY(index_col_name, ...) clause.