mysql import via terminal code example
Example 1: import file mysql terminal
mysql -u<username> -p<password> databaseName < /path/fileName.sql
Example 2: command line mysql import
mysql -u username -p database_name < file.sql
mysql -u<username> -p<password> databaseName < /path/fileName.sql
mysql -u username -p database_name < file.sql