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 "
meta_id
column but you are not defining that column as a key, just like the error says. How are you creating the import file? Are you importing from WordPress to WordPress? Please, provide some some context and more details about the issue.