How to export database through terminal Navigate to the project path Run the command mysqldump -u YourUser -p YourDatabaseName > wantedsqlfile.sql