mysql -h localhost -u username -p database_name < backup_file.sql
mysql -u username -p database_name < file.sql #or, after login in to mysql source sql_file_name_with_path.sql;