In case anyone else is getting this error, the problem for me was the global_priv table. I only had to repair that table and it's all working again.