Erasing the Current Line or Query

mysql> DROP DATABASE foo;\c

Most users of command-line shells like Bash are accustomed to using CTRL+c to halt a command or clear a line. Within the mysql command-line client, CTRL+c causes the entire program to exit. Instead of CTRL+c, type \c and press Enter. This clears the current command and returns you to an empty command-line.

MySQL Phrasebook. Essential Code and Commands
MySQL Phrasebook
ISBN: 0672328399
EAN: 2147483647
Year: 2003
Pages: 130

Similar book on Amazon © 2008-2017.
If you may any questions please contact us: