Command Line MySQL Dump and Import Dump mysqldump -u username -p database > dump-file-path.sql To export data only: mysqldump -u username -p --no-create-db --no-create-info database > dump-file-path.sql Import mysql -u username -p database < dump-file-path.sql