how to import database in mysql in windows10 code example Example: how to import database in mysql by cmd mysql -u username -p database_name < file.sql