​​To repair your WordPress database without cPanel access, add a line to wp-config.php: define('WP_ALLOW_REPAIR', true). Visit yourdomain.com/wp-admin/maint/repair.php and choose to fix or repair and optimize the database. Remove the line from wp-config.php after the repair for security. For more detailed instructions, please read this post.