mysql cli

MySQL: tee saving your output to a file

Tee is a unix command that takes the standard out output of a Unix command and writes it to both your terminal and a file. Until recently I never knew there was a MySQL client command that performed the same function. Today I will show you an example of how to use it. First login to the MySQL CLI (command line interface) $ mysql -uroot -p Enter password: Welcome to the MySQL monitor.