how to import sql script into mysql database code example
Example 1: mysql import sql file
mysql -u username -p database_name < file.sql
Example 2: import mysql db
zcat /path/to/file.sql.gz | mysql -u 'root' -p your_database
mysql -u username -p database_name < file.sql
zcat /path/to/file.sql.gz | mysql -u 'root' -p your_database