Linux. MySQL command-line client. Set '--sigint-ignore' option forever

0

I think Ctrl+C is required sometimes but I can't remember I needed it. Sometimes I'm trying to copy output text by pressing that "hotkey" automatically and losing db connection instead. It is very annoying and I would like to disable SIGINT sending forever. Can this be done?

Sysinfo: Linux Mint 17 mysql-client-5.5

gumkins

Posted 2015-03-31T13:30:52.440

Reputation: 185

Answers

1

Just add in /etc/mysql/my.cnf (or wherever your my.cnf is):

[mysql]
sigint-ignore

Add it to an existing [mysql] section if you already have one...

Thomas Guyot-Sionnest

Posted 2015-03-31T13:30:52.440

Reputation: 465