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
mysql -u username -p database_name < /path/file.sql
It will ask for password after this command