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