For some odd reason, I always forget the stupid syntax for mysqldump. There are a bunch of options that you can use with this program, but if you just want to grab a simple dump of your database, use this command:

shell> mysqldump -u[user] -p[password] [databasename] > dumpfile.sql