Here you can learn how to insert database using terminal.
1. First create a database and have one .sql file to insert or upload into it.
2. Now put that .sql file into home folder.
3. Run this command on terminal:
mysql -u root -p dbname < dbname.sql
and press enter. It will ask for database password and enter it.
root is the user name for database access.
Hence the database will uploaded.