Answer the question
In order to leave comments, you need to log in
What's wrong with dumping MySql database?
Good day everyone.
I suddenly ran into a problem.
Site on wordpress.
Worth the Disqus comments plugin.
When installing the plugin in the database, the wp_commentmeta table was created.
Everything works.
I do base dump through the mysqldump console - the dump becomes.
But I can’t load it back through the console, I get an error
ERROR 1071 (42000) at line 53: Specified key was too long; max key length is 1000 bytes
DROP TABLE IF EXISTS wp_commentmeta;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE wp_commentmeta (
meta_id bigint(20) unsigned NOT NULL AUTO_INCREMENT,
comment_id bigint(20) unsigned NOT NULL DEFAULT ‘0’,
meta_key varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
meta_value longtext COLLATE utf8mb4_unicode_ci,
PRIMARY KEY (meta_id),
KEY comment_id (comment_id),
KEY meta_key (meta_key(191)),
KEY disqus_dupecheck (meta_key,meta_value(11))
) ENGINE=MyISAM AUTO_INCREMENT=19 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
KEY disqus_dupecheck (meta_key,meta_value(11))
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question