import db via terminal code example
Example 1: mysql export database command line
mysqldump -uroot -p root YourDatabaseName > WantedSQLFile.sql
Example 2: import file mysql terminal
mysql -u<username> -p<password> databaseName < /path/fileName.sql