wp_termmeta doesn’t exist error [SOLVED]

How to fix wp_termmeta doesn’t exist?

Use this SQL query to add manually the wp_termmeta table in your WordPress Database if there is the error wp_termmeta doesn’t exist

CREATE TABLE `wp_termmeta` (
  `meta_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `term_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 `term_id` (`term_id`),
  KEY `meta_key` (`meta_key`(191))
) ENGINE=InnoDB AUTO_INCREMENT=3255 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

You can do it also in PhpMyadmin, SQL Query section.

Make as always a database backup before doing it 🙂