How to clear screen in MySQL? [duplicate]

2020-05-18 04:11发布

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.

3条回答
时光不老,我们不散
2楼-- · 2020-05-18 04:32

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.

查看更多
Evening l夕情丶
3楼-- · 2020-05-18 04:45

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.).

查看更多
Lonely孤独者°
4楼-- · 2020-05-18 04:46

Ctrl+L

will do it - its a shell command but works well on the mysql console

查看更多
登录 后发表回答