WordPress database error Table './databasename/wep_options' is marked as crashed and should be repaired for query
I think you are using MyISAM Engine

Don't use MyISAM for any case. It's becoming deprecated.



To get rid of this problem first repair your table.

Do the following:

REPAIR table wep_options;


Depending on the table size, this command takes time.

If your table is big and you can stop temporary mysql, I think myisamchk command is faster than repair command.

Check out end of this topic:
[https://mariadb.com/kb/en/mariadb/myisamchk/#repairing-tables][1]

After that To avoid repeating crash convert all tables to InnoDB Engine.

Example:

ALTER TABLE your_tables ENGINE=InnoDB;