3.4版本的SQL有bug啊,配合mysql-5.6,创建数据库的时候报错。两张表有自增量字段,但不是key。mysql的错误信息:
CREATE TABLE pre_common_member_grouppm ( uid mediumint(8) unsigned NOT NULL DEFAULT '0', gpmid smallint(6) unsigned NOT NULL AUTO_INCREMENT, `status` tinyint(1) NOT NULL DEFAULT '0', dateline int(10) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (uid,gpmid)) ENGINE=MYISAM DEFAULT CHARSET=utf8;
ERROR 1075 (42000): Incorrect table definition; there can be only one auto column and it must be defined as a key