How to clear mysql screen console in windows?

前端 未结 23 1956

The title is my question. I googled and try something like

mysql> !\\ clear
mysql> !\\ cls
mysql> system cls
mysql> system clear 

blah blah ...
         


        
相关标签:
23条回答
  • 2020-12-29 01:39

    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

    0 讨论(0)
  • 2020-12-29 01:39

    It worked for me using this:

    clear screen
    
    0 讨论(0)
  • 2020-12-29 01:40

    This is not possible on Windows.

    There is an open bug for this issue: Bug #58680: Windows Clear Screen Command

    0 讨论(0)
  • 2020-12-29 01:48

    I handle it as follows:

    1. Right click on cmd open property's goto layout
    2. Set screen buffer height to 9999 and ok
    3. Now whenever you want to type a new query, just scroll with the mouse and you will get a blank screen
    0 讨论(0)
  • 2020-12-29 01:50

    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

    0 讨论(0)
  • 2020-12-29 01:51

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

    0 讨论(0)
提交回复
热议问题