Kurinchi Blogger Scribbles …


Mar 01
2010

MySQL Clear Screen Window

Last updated: March 17th, 2010

To clear the screen content in MySQL use the command

mysql> \! clear

Usage of “\!” tells MySQL to pass the command to Linux OS to handle the request.

If you are in a Windows environment (DOS prompt), to pass the control to the OS you can use the command

mysql>system cls

Tags: , , ,

One Response to “MySQL Clear Screen Window”

  1. Slik says:

    FWIW, if you’re using MySQL server 5.1 in Windows, the “mysql>system cls” command from the command line does not appear to pass the command to the OS, and does not clear the screen. Thanks for the information here, though. Still, the only way I know of to clear the screen from the command prompt in windows is to quit MySQL, use a regular “cls” from the prompt, then log back into MySQL (mysql -u root -p). This, of course is not really effective.

    For the Windows guys, I still haven’t run across anyone who knows how to accomplish this from within MySQL at the command prompt, if it’s possible to do. Simple to do in linux, but Windows…

Leave a Reply


Valid HTML 4.01 Strict  Valid HTML 4.01 Strict