mysqldump --all-databases > allDB.sql
The above dumps ALL the mysql databases to "allDB.sql".
If you want to compress with gzip you could do this instead:
mysqldump --all-databases > gzip > ALLDB.sql.gz
mysql, databases, mysqldump, commandmysqldump, alldb, sql, dumps, quot, compress, gzip, gz,