I am running an alter table statement over a table with 350 million rows. How can I know that the statement is actually doing something and is not hung? Equally I'd hate to disturb a statement potentially moments before it finishes. Especially after it has run for hours.
I need to be able to script this in either Bash or PERL as I the host is a Redhat Linux box. The statement in this case is:
ALTER TABLE table_name AUTO_INCREMENT = 1;