如何修复mysql错误#1075 - 表定义不正确?

时间:2016-09-23 19:58:08

标签: mysql wordpress

对于上下文:我试图在登台服务器上设置旧的Wordpress站点。当我尝试上传sql备份时,收到以下错误消息:

>Error
>SQL query:

>--
-- Database: `db_name`
>--
-- --------------------------------------------------------
>--
>-- Table structure for table `wp_commentmeta`
>--
>CREATE TABLE IF NOT EXISTS  `wp_commentmeta` (

> `meta_id` BIGINT( 20 ) UNSIGNED NOT NULL AUTO_INCREMENT ,
> `comment_id` BIGINT( 20 ) UNSIGNED NOT NULL DEFAULT  '0',
> `meta_key` VARCHAR( 255 ) DEFAULT NULL ,
> `meta_value` LONGTEXT
>) ENGINE = MYISAM AUTO_INCREMENT =3339 DEFAULT CHARSET = utf8;

>MySQL said: Documentation

>#1075 - Incorrect table definition; there can be only one auto column and it must be defined as a key 

>----------------------

我对SQL很糟糕所以我希望有人能帮我解读这个。

0 个答案:

没有答案