Skip to main content
Formatted and retagged
Source Link
birgire
  • 67.8k
  • 7
  • 119
  • 251

I'm trying to import a database and wonder how I can stop getting the following error?

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

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

Here's the result when importing using PHPMyAdmin.

SQL query:

-- -- Database: db_factorypattern


-- -- Table structure for table wp_commentmeta

--
-- Database: `db_factorypattern`
--

-- --------------------------------------------------------

--
-- 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=2610 DEFAULT CHARSET=utf8;

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=2610 DEFAULT CHARSET=utf8; MySQLMySQL said: Documentation

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

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

I'm trying to import a database and wonder how I can stop getting the following error?

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

Here's the result when importing using PHPMyAdmin.

SQL query:

-- -- Database: db_factorypattern


-- -- 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=2610 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

I'm trying to import a database and wonder how I can stop getting the following error?

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

Here's the result when importing using PHPMyAdmin.

SQL query:

--
-- Database: `db_factorypattern`
--

-- --------------------------------------------------------

--
-- 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=2610 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 "

Source Link
Andy
  • 11
  • 2
  • 4

SQL Error wp_commentmeta - incorrect table definition

I'm trying to import a database and wonder how I can stop getting the following error?

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

Here's the result when importing using PHPMyAdmin.

SQL query:

-- -- Database: db_factorypattern


-- -- 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=2610 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