Fix Control-C in mysql command line programme?
mysql command line, pushing Control-C will certainly terminate the program, and also bring you back to bash. In
psql, the one for postgres, it will certainly eliminate the existing question and also will certainly not stop the psql program. Exists any kind of means to get the psql design practices for Control-C in the mysql program? I maintain locating myself pushing Control-C by behavior and also needing to log back right into mysql.
Control C does not eliminate bash, and also log you out when you push it. Which I assume is a good idea. Control-C suggests 'stop what you are doing'.
Like Andy claims, it is dealt with in later variations.
There is no equal keyboard faster way in older variations.
Yet you can stop it from occurring with the adhering to CLI flag:
--sigint-ignore Ignore SIGINT signals (typically the result of typing Control-C).
If you press Ctrl-C in 5.1 during query execution, it will certainly stop the implementation with the message "Query implementation was interrupted"
mysql> INSERT INTO c SELECT rand()*1000, sha1(rand()) FROM c; Query aborted BY Ctrl+C ERROR 1317 (70100): Query execution was interrupted
A more Ctrl-C press eliminates the customer.
Older variations pass away badly as kept in mind concerned, so upgrade when possible