export and import database in mysql code example Example: import database mysql command line mysql -u username -p new_database < data-dump.sql