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