import sql to database command line code example
Example 1: import database through command line
mysql -u username -p database_name < file.sql
Example 2: import sql via command line
mysql> use db_name;
mysql> SET autocommit=0 ; source the_sql_file.sql ; COMMIT ;