ubuntu mysql export database code example Example: mysql export database command line mysqldump -uroot -p root YourDatabaseName > WantedSQLFile.sql