how to import database in mysql using terminal code example
Example 1: import database mysql command line
mysql -u username -p new_database < data-dump.sql
Example 2: import file mysql terminal
mysql -u<username> -p<password> databaseName < /path/fileName.sql
Example 3: mysql export database command line
mysqldump -uroot -p root YourDatabaseName > WantedSQLFile.sql