To fix a corrupted MySQL database, use the `mysqlcheck` command to check and repair the database. Running `mysqlcheck -u username -p –auto-repair –check –optimize dbname` can help resolve issues.