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, Type CLS
and then re-enter MySql.
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
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With