开发者

Can I tell how long is left on an ALTER TABLE command?

On our primary MySQL server, it took 40 minutes to insert rows and re-enable keys on a particular table. On the slave, the ALTER TABLE ... ENABLE KEYS command has been running now for just over 100 minutes, which is very unusual. I'd 开发者_运维百科like to kill it, but that will annoy the slave. Is there any way whatsoever to get a glimpse at how much longer this will take?


There is no way to determine how much longer this will take. The command will copy all data to a temporary table, make the changes and then rename the copy to replace the original. You may well see 'Copy into temporary table' in the ProcessList, but this doesn't give any indication as to how much is left.

I also suggest that you do not kill the process and let it finish the operation.

Patience!


No way to tell. Just have to wait it out.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜