Example:

mysqldump -d -h localhost -u root -p2Uad7as9 database01 > dumpfile.sql