Mysql:输出到文件

mysql>tee /home/a.txt
mysql>show processlist;
mysql>exit

tee命令能重定向输出,同时屏幕会同步显示。

原文地址:https://www.cnblogs.com/helww/p/3291099.html