Source : https://www.programmingquest.com/2018/08/how-to-export-mysql-database-using.html open cmd set mysql path in cmd set path=c:wampinmysqlmysql5.6.17in For database import (Restore): mysql -u YourUser -p YourDatabaseName < filename.sql