The title is my question. I googled and try something like
mysql> !\\ clear
mysql> !\\ cls
mysql> system cls
mysql> system clear
blah blah ...
Just scroll down with your mouse
In Linux Ctrl+L will do but if your scroll up you will see the old commands
So I would suggest scrolling down in windows using mouse
It worked for me using this:
clear screen
This is not possible on Windows.
There is an open bug for this issue: Bug #58680: Windows Clear Screen Command
I handle it as follows:
You are typing the command wrong. It is "\" before "!" and not after. The command ctrl+L will not work for windows. To clear mysql console screen, type following command.
mysql> \! cls
This will do the job for windows. "\!" is used to execute system shell command. "cls" is command to clear windows command prompt screen. Similarly if you are on linux, you will type "ctrl+L" or following,
mysql> \! clear
source: https://dev.mysql.com/doc/refman/8.0/en/mysql-commands.html
although there is bug for clearing the screen in MySQL, I have found one tactic trick whatever you want to say...
you can easily clear the screen using this...
just press ( ctrl + down arrow ) until you reach to top... happy codding...