How to clear MySQL screen console in Windows?
The title is my question. I googled and try something like
mysql> !\ clear
mysql> !\ cls
mysql> system cls
mysql> system clear
blah blah ...
but none of them works.
Anyone show me how to clear screen, just like cls
command in Windows?
I don't think Any of the commands will work.
In Linux Ctrl+L will do the job. In Windows there is no equivalent. You can only exit MySQL console by executing quit
, execute cls
and then re-enter MySQL console.
This is not possible on Windows.
There is an open bug for this issue: Bug #58680: Windows Clear Screen Command
mysql>
root@xion:~# mysql -uroot -ppassword;
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 33291
Server version: 5.0.51a-3ubuntu5.4 (Ubuntu)
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> \! clear