# Backup data and the structure from a database to a .sql file mysqldump -u [user] -p[password] [database_name] > file.sql