importing mysql file to cmd line code example Example: command line mysql import mysql -u username -p database_name < file.sql