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