mysql command line save output to file code example Example: mysql cli output to a file mysql> tee /tmp/my.out;