Use -r to indicate output file for mysqldump.