mysqldump -h <host name> -u<username> -p<password> <db name> > my-dump.file
How to dump the entire contents of a database from MySQL into a file, that includes SQL type INSERT statements
mysqldump -h <host name> -u<username> -p<password> <db name> > my-dump.file