import mysql db after login code example
Example 1: import file mysql terminal
mysql -u<username> -p<password> databaseName < /path/fileName.sql
Example 2: import mysql db
zcat /path/to/file.sql.gz | mysql -u 'root' -p your_database
mysql -u<username> -p<password> databaseName < /path/fileName.sql
zcat /path/to/file.sql.gz | mysql -u 'root' -p your_database