Critical Error On My Website

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

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Site Moderator
Site Moderator badge
January 19, 2023

Hello @rajivilhamerlangga

You can attempt a manual repair via the command line or use the WP_ALLOW_REPAIRoption 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:


Site Moderator
Site Moderator badge
January 17, 2023

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:

  1. download the wp-cli.phar file using wget or curl:
curl -O
  1. Next, check the Phar file to verify that it’s working:
php wp-cli.phar --info
  1. To use WP-CLI from the command line by typing wp, make the file executable and move it to somewhere in your PATH. For example:
chmod +x wp-cli.phar
sudo mv wp-cli.phar /usr/local/bin/wp
  1. Go to your website’s root directory (where your wp-config and other files are) and start operating:
cd /path/to/website
wp --info 

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

  1. wp db repair

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

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

card icon
Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Sign up
card icon
Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We’d like to help.

Learn more
card icon
Become a contributor

You get paid; we donate to tech nonprofits.

Learn more
Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow – whether you’re running one virtual machine or ten thousand.

Learn more ->
DigitalOcean Cloud Control Panel