mysql -u username -p databasename < filename
mysqldump -u username -p dbname > filename
mysqldump -u username -p databasename tablename > filename
mysqldump -u username -p --databases dbname1 dbname2 > filename
mysqldump --databases X --tables Y --where="column < 1000"
mysql -u username -p -e "query"