首先进入mysql客户端
mysql> create database test;
Query OK,1 row affected
mysql> use test
Database changed
mysql> set names utf8;
Query OK, 0 rows affected (0.00 sec)
mysql> source C:/test.sql
Query OK, 0 rows affected (0.00 sec)
Query OK, 0 rows affected (0.33 sec)
......