Dumping an entire database is easy, but dumping a single table requires a few options:
$ mysqldump --opt -u <username> -p <database> <table> > outfile.sql