MySQL online documentation
Backup your existing database
read
Code:
mysqldump --opt db_name > backup-file.sql
or if you want to compress it to an archive go with this command:
Code:
mysqldump --opt -u user --password="password"
database | bzip2 -c > database.sql.bz2
Copy MySQL database to another computer
read
Code:
mysqladmin create db_name
cat DUMPDIR/*.sql | mysql db_name
Good luck!
Boby