run mysql import database command in bash script code example
Example: linux command line import mysql database
# if your database is not locally hosted
mysql -u username -p -h dbhost dbname < filename.sql
# if your database is not locally hosted
mysql -u username -p -h dbhost dbname < filename.sql