1# Syntax
2mysqldump -u [username] -p [database-to-dump] > [database-to-receive]
3
4# Pipe it! Exporting DB from external host
5mysqldump -u [username] -P [port] -h [host] [database-to-dump] | mysql -u root -h 127.0.0.1 [database-to-receive]
6
7# Export specific tables by typing the name after the targeted DB
8mysqldump -u [username] -P [port] -h [host] [database-to-dump] [tabl1] [table2] [table3] | mysql -u root -h 127.0.0.1 [database-to-receive]
1$> mysqldump -umy_user_name -p database_name --tables my_table1 --where="date_created > '2016-01-01' " > mytable1_filtered_dump.sql
2
1mysqldump -u [username] -p [database-to-dump] > filename(e.g. dump.sql)
2
3# or
4sudo mysql database_name > filename
5