Key column ‘option_id’ doesn’t exist in table

[ad_1]

Somehow, your wp_options table has a missing key.

Issue this MySQL data definition language (DDL) statement

ALTER TABLE wp_options ADD UNIQUE KEY option_id(option_id)

and your problem should be fixed.

I can’t begin to guess how that key got lost, sorry to say.

If you have WP-CLI support you can issue that DDL with this line of a shell script command:

wp db query "ALTER TABLE wp_options ADD UNIQUE KEY option_id(option_id)

Or you can use phpmyadmin or some other SQL client program.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer