how to import .sql file in mysql using mysql mysqldump code example Example: mysql import sql file mysql -u username -p database_name < file.sql