简体   繁体   中英

Error Code: 2013. Lost connection to MySQL server during query when running MySQL query

I had a bad table which I can't do anything on it and keeps return error with message:

Error Code: 2013. Lost connection to MySQL server during query

whenever I try to run any query that involve the bad table. I have tried to drop/repair the bad table but not working at all. It just keeps return the same error message.
Anyone know how to fix this?

SHOW PROCESSLIST;
KILL <process_id>;

End up I found out that my query is stuck in process, I just list the process list and kill the stuck query process and the table is working fine now.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM