hello everyone I have a problem on my website:
WordPress database error Table ‘./wordpress/wp_actionscheduler_actions’ is marked as crashed and should be repaired
as a result I can’t access wp-admin, all pages except home page,
also I can’t deactivate the plugin via digital ocean console
hope someone can help, thank you
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hello @rajivilhamerlangga
You can attempt a manual repair via the command line or use the
WP_ALLOW_REPAIR
option within your wp-config.php file to attempt fixing the database crashed tables.Sometimes, due to a failed upgrade, a database crash, or a faulty plugin, your WordPress database can become corrupted. This problem can present itself as a database connection error, so if your problem wasn’t the MySQL server or the configuration file, try repairing your database.
WordPress provides a built-in utility to repair the database. It is disabled by default, because it has no access controls and could be a security issue. We will enable the feature, run the repairs, and then disable it.
You can find more information here:
https://www.digitalocean.com/community/tutorials/how-to-debug-the-wordpress-error-establishing-database-connection#step-3-repairing-the-wordpress-database
Regards
Hi @rajivilhamerlangga,
You can use WP-CLI. WP-CLI is the command-line interface for WordPress. You can update plugins, configure multisite installations and much more, without using a web browser. The installation process is quite easy and frankly, it’s a must have tool for any WordPress website:
wget
orcurl
:wp
, make the file executable and move it to somewhere in your PATH. For example:The wp --info command should return some input for you. If that works, all you need to do is run this to repair your DB
That should do the trick for you.
Additionally, there is a lot more you can do with the tool to manage your WP installation. Check more about that here https://developer.wordpress.org/cli/commands/