At times, SQL databases may become corrupted, disrupting your website's functionality. Fortunately, there's a straightforward method to auto-fix these and get your site back on track.
MySQLCheck, a handy tool, can scan and mend corrupted databases while they're still running. This means you won't need to halt your server for adjustments.
Requirements
Server SSH access
Automatically mend a corrupted database
Connect to the server using SSH
Run this command:
mysqlcheck -Ao --auto-repair --all-databases
(-Ao = inspects all accounts and optimizes tables)