upload database from terminal phpmyadmin code example
Example 1: import file mysql terminal
mysql -u<username> -p<password> databaseName < /path/fileName.sql
Example 2: how to import mysql database command line
mysql>create database yourDatabaseName;
mysql>use yourDatabaseName;