比如 { time mysqldump > bak.sql; } 2> t.txt
mysqldump 一定要写绝对路径, 否则,bak.sql是空的。
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
Do you need an absolute path to run mysqldump normally?
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
Do you need an absolute path to run mysqldump normally?