I am not able to clear the screen in MySQL command line prompt. My screen is filled with tables, data and queries.I want to clear it up. I searched on the web but couldn't find the satisfactory answer.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
This question already has answers here:
How to clear the MySQL screen opened through the MySQL Command Line Client on Windows XP
(8 answers)
Closed 6 years ago.
回答1:
Try your terminal apps screen clear. There is no such as command to clean the MySQL shell.
On a Mac you can go to Edit > Clear Screen
or use the keyboard shortcut: ⌥ + CMD + L
.
回答2:
Ctrl+L
will do it - its a shell command but works well on the mysql console
回答3:
Another possibility is to issue a system command.
mysql> system clear;
for Linux or
mysql> system cls;
for windows (I'd guess. For Linux I'm sure though.).