How do I import an SQL file using the command line in MySQL? code example Example: mysql import sql file mysql -u username -p database_name < file.sql