/Applications/AMPPS/mysql/bin/mysql -u root -pmysql
shell> mysqldump db_name > backup-file.sql
You can load the dump file back into the server like this:
shell> mysql db_name < backup-file.sql
The same in Windows command prompt:
mysql -p -u [user] [database] < backup-file.sql
C:\> cmd.exe /c "mysql -u root -p db_name < backup-file.sql"
mysql> use db_name;
mysql> source backup-file.sql;