Run the repair table at 6 am to avoid the users connecting to the server. But still, I encounter an error running the repair table Error Code: 2013, Lost connection to MySQL server during query. The last resort is to create a new corresponding table for the crashed table and rename the crashed table as a backup. As the repair table is affecting the server consuming all the resources.