How to import a .sql file in MySQL?
Export:

mysqldump -u username –-password=your_password database_name &gt; file.sql


Import:

mysql -u username –-password=your_password database_name &lt; file.sql