Thursday, October 19, 2006

MySQL 的 Control-C

Changes in release 5.0.25 (15 September 2006)

For the mysql client, typing Control-C causes mysql to attempt to kill the current statement. If this cannot be done, or Control-C is typed again before the statement is killed, mysql exits. Previously, Control-C caused mysql to exit in all cases. (Bug#17926; see also Bug#1989)

MySQL 总算解决这个问题了,放弃执行正在运行的 SQL 指令。

以往如果误执行了一个巨慢的 SQL 指令,通常的做法是 Control-C 退出并重新进入 MySQL 命令行环境,列出所有执行线程,找出那个慢郎中并杀之。现在好了,直接 Control-C 就能搞定了。

5.1 系在较早之前就加入了此功能,4.1 系至今没有同步此更新的迹象,遗憾……

Bug#1989 was submitted at 1 Dec 2003 12:51

忍不住牢骚一句,这个改进未免也来得太慢了一些啊!

No comments: