If the database is corrupt probably the user isn’t able to login, you can run a script located on http://your_domain/wp-admin/maint/repair.php, this script can run without needing the user to log in. But before running the script you must add the following line in the wp-config.php file:
define( 'WP_ALLOW_REPAIR', true ); |
NOTE: Do not forget to delete the line after the database is repaired.
Repair corrupt database