Safer implementation of the mysqldump command.