How to import an SQL file using the command line in MySQL? By Zeeshan Ahmad November 12, 2015 How to import an SQL file using the command line in MySQL? mysql - u username - p database_name < /path/ file . sql It will ask for password after this command Read more