- Locate the mysql executable (C:\Programs\xampp\mysql\bin\mysql.exe )
- Copy the path in the clipboard as you will need it in the next step.
- To import a database we just need to execute the following command with the following arguments:
mysql -u {DATABASE_USERNAME} -p {DATABASE_NAME} < "path/to/file/database-to-import.sql"