Does anyone have a MySQL optimization / repair script written completely in SQL? I would like to run it as a scheduled procedure.