How to clear the MySQL Server Command-Line


Have you ever felt that your MySQL command-line prompt is getting too untidy and you want to clear it.
Here is how you do it-
To clear the terminal when using MySQL, from within the MySQL server prompt.

mysql>\! clear

Note: \! operator is to run any terminal command from within the mysql server prompt.
e.g. mysql>\! ls
Executes ls command and shows it output, i.e, the contents of the current working directory.

2 thoughts on “How to clear the MySQL Server Command-Line

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s