how to import .sql file into mysql using the command line code example Example: mysql import sql file mysql -u username -p database_name < file.sql