把sql.sql放在C:\根目录下:
C:\Documents and Settings\bitan>mysql -u root
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 1 to server version: 4.0.20a-debugType 'help;' or '\h' for help. Type '\c' to clear the buffer.mysql> create database Article;
Query OK, 1 row affected (0.02 sec)mysql> exit
ByeC:\Documents and Settings\bitan>cd c:\C:\>mysql -u root Article < c:\sql.sql