Open a terminal and type:
mysqldump -u USERNAME -p --all-databases > backup.sql
, substituting USERNAME with your user. This will pipe the output of the mysqldump command to backup.sql.
And if you need to restore your database, type
mysql < backup.sql
, and you're off. You probably need some login information in that line as well...
hope this helps,
Terje