I am using HeidiSQL and running maintenance checks on all tables in the database (mysql 5.5.46-0+deb7u1-log) using:
CHECK TABLE `database`.`table` QUICK FAST MEDIUM
It just goes through and runs that command on each table, one at a time. However, I need to restart the server. Is it safe to kill this check without corrupting anything?
Best Answer
Please note what the MySQL Documentation on
CHECK TABLE
says about running on InnoDB tables, bulletpoint 7 under the heading CHECK TABLE Usage Notes for InnoDB TablesCHECK TABLE
never implies doing writes, just blocking other connections in the worst.CHECK TABLE
should abort itself after 4 minutes as a courtesy to other connections. In your case, if there are other processes, wait 4-5 minutes. Then kill the process. If there is nothing else running, kill the process now. Doing a shutdown with it still running may block the shutdown for 4 minutes or more, but will eventually shutdown.Please run
SET GLOBAL innodb_fast_shutdown = 0
beforehand.