import sql file mysql commadn line code example Example: import sql file mysql commadn line mysql -u username -p database_name < file.sql