mysqldump -u [username] -p [database-to-dump] > filename(e.g. dump.sql) # or sudo mysql database_name > filename