import sql from command line code example
Example 1: import sql via command line
mysql> use db_name;
mysql> SET autocommit=0 ; source the_sql_file.sql ; COMMIT ;
Example 2: import sql files
use DATABASE_NAME
source SQL_FILE_PATH
e.g.
use test
source c://users.sql
Example 3: import sql from terminal
mysql -u <username> -p <databasename> < <filename.sql>