比如 { time mysqldump > bak.sql; } 2> t.txt
mysqldump 一定要写绝对路径, 否则,bak.sql是空的。
天蓬老师2017-04-24 16:01:12
It seems that your environment variables are wrong. Use env | grep PATH to check whether the paths corresponding to time mysqldump and other commands are in your PATH