Well, since this question hasn't been answered before...
Quote:
The most common use of mysqldump is probably for making a backup of an entire database:
shell> mysqldump --opt db_name > backup-file.sql
|
You can read the dump file back into the server like this:
Code:
shell> mysql db_name < backup-file.sql
Or like this:
Code:
shell> mysql -e "source /path-to-backup/backup-file.sql" db_name
from:
http://dev.mysql.com/doc/refman/5.0/en/mysqldump.html
You may also need to specify the host, username, password, etc.
http://www.eklekt.com/tutorials/tutorial.php?t=1