mysql -u username -p database_name < file.sql
Source:
https://stackoverflow.com/questions/17666249/how-do-i-import-an-sql-file-using-the-command-line-in-mysql
Article ID: 4
Created On: Wed, Sep 2, 2020 at 3:40 AM
Last Updated On: Wed, Sep 2, 2020 at 3:40 AM
Authored by: Saeed Nobakht [[email protected]]
Online URL: https://www.navel.ir/article/how-do-i-import-an-sql-file-using-the-command-line-in-mysql-4.html