====== MySQL import sql file ====== Try: mysql -u username -p database_name < file.sql Note: It is better to use the full path of the SQL file file.sql.