I'm having that typical problem of
Website encountered unexpected error popping up sometimes and then after repairing
watchdog MySQL table it all works find again.
My question is if there is a module that would do this automatically? Or any script that I could run from cron or from drupal?
db maintenance module and thought it does that, but apparently no.