这个该如何执行 我在linux上写一个sql, mysql-uroot -p MYdb -e"show processlist into outfile /aa/aa.txt"
提示错误ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'into outfile 'aa/aa.txt'' at line 1如果把
show processlist 换select * from a 是成功的现在我的监控脚本必须写成把show processlist 的内容 写入到 文件里 
这个方法有问题没有?  该如何才能实现