Use the mysqldump binary path for the target server, not localhost.