All you need is the following command:
mysqldump -h localhost -u dbuser -p dbname > export_db.sql
You will need to replace 'dbname' with your database name and export_db.sql with the name of the file that you want to give to the backup file (dump).
All you need is the following command:
mysqldump -h localhost -u dbuser -p dbname > export_db.sql
You will need to replace 'dbname' with your database name and export_db.sql with the name of the file that you want to give to the backup file (dump).