The title is my question. I googled and try something like
mysql> !\\ clear
mysql> !\\ cls
mysql> system cls
mysql> system clear
blah blah ...
This is what I did to get around this bug. The windows console (cmd) is just not worth using for anything other than some simple commands. So the following is what I did.
Installed Cygwin (Go here) It is pretty straight forward to install. You can watch this video. It explains very easily how to install cygwin. Make sure when you select the packages that you want to install includes Mintt (it is basically a better shell or cmd) and mysql client package.
Once you are done installing it, you should add the bin folder from cygwin in your PATH Environmental Variables(The above video explains that as well)
Now You will have an icon on the desktop for cygwin. Open it up and login to mysql using the normal commands. You will need to put the ip of the mysql server in the command to make it work. I use the following logging in MySQL which was installed through wamp
mysql -u root -p -h 127.0.0.1
You can add more arguments in there if you want. Once you get in mysql just press ctrl + L and you will clear the screen.
Open Properties by clicking the upper left console window icon, go to Layout tab, take note of the value set in Screen Buffer Size->Height
, and change it to 1. Click OK.
You'll see a 1 row console. Open Properties again and change that value back to what it had before. Resize the console down and you'll have a clean console.
SQL> clear scr
This command clears the screen in MYSQL
Unfortunately in Windows, It is not possible. The only way out is to exit and type cls and then again open mySQL
For windows command prompt
Use
system cls