how to export mysql database using terminal code example Example: mysql export database command line mysqldump -uroot -p root YourDatabaseName > WantedSQLFile.sql