Summary: We have acquired a large databse dump which we need to import into our local system. Since the database size is large, phpmyadmin can’t help. MySQL command line tool comes to our rescue
Change directory to where our SQL script is:
cd ~/Downloads
First login to mysql:
mysql -u root -ppassword
Change database to our target database:
use somedb;
Execute the SQL Script:
source somedb_backup.sql