You also can use the mysqldump program located in the bin dir of mysql.

./mysqldump -u root -pPass --all-databases >backup.sql

This will dump your whole mysql database.
To dump a specific database:
./mysqldump -u root -pPass --opt database > backup.sql


To put the whole database back:
./mysql -u root -pPass < backup.sql

To put one back:
./mysql -u root -pPass database < backup.sql
_________________________
Never argue with fools... They will only drag you down to their level, and beat you with experience...