  
- 積分
- 7435
- 經驗值
- 7929 EXP
- 家電幣
- 673822 法拉
- H值
- 8384 汁
- 熱血
- 6000 度
- 嘴砲
- 3266 值
         
|
方法三:直接用dos的方式匯入資料庫
windows dos 匯入資料庫檔
先移動到AppServ\MySQL\bin路徑下:
C:\Users\yunda>cd C:\AppServ\MySQL\bin
登入資料庫(-u帳號 -p密碼)
C:\AppServ\MySQL\bin>mysql.exe -uroot -p123456
/mysql/bin/mysql -uroot -p123456 SYN < SYN.sql
出現登入訊息後Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 6
Server version: 5.0.51b-community-nt-log MySQL Community Edition (GPL)
Type 'help;' or '\h' for help. Type '\c' to clear the buffer. 選擇資料庫
mysql> use SYN_KH
選擇資料庫路徑:
mysql> \. C:\KH.sqlQuery OK, 186 rows affected (0.02 sec)
Records: 186 Duplicates: 0 Warnings: 0
Query OK, 168 rows affected (0.03 sec)
Records: 168 Duplicates: 0 Warnings: 0
Query OK, 182 rows affected (0.03 sec)
Records: 182 Duplicates: 0 Warnings: 0
Query OK, 182 rows affected (0.03 sec)
Records: 182 Duplicates: 0 Warnings: 0
Query OK, 168 rows affected (0.03 sec)
Records: 168 Duplicates: 0 Warnings: 0
Query OK, 182 rows affected (0.03 sec)
Records: 182 Duplicates: 0 Warnings: 0
Query OK, 180 rows affected (0.03 sec)
Records: 180 Duplicates: 0 Warnings: 0
Query OK, 192 rows affected (0.03 sec)
Records: 192 Duplicates: 0 Warnings: 0
Query OK, 181 rows affected (0.03 sec)
Records: 181 Duplicates: 0 Warnings: 0
Query OK, 171 rows affected (0.03 sec)
Records: 171 Duplicates: 0 Warnings: 0
Query OK, 161 rows affected (0.03 sec)
Records: 161 Duplicates: 0 Warnings: 0
Query OK, 165 rows affected (0.03 sec)
Records: 165 Duplicates: 0 Warnings: 0
Query OK, 161 rows affected (0.03 sec)
Records: 161 Duplicates: 0 Warnings: 0
Query OK, 165 rows affected (0.02 sec)
Records: 165 Duplicates: 0 Warnings: 0
Query OK, 168 rows affected (0.03 sec)
Records: 168 Duplicates: 0 Warnings: 0
Query OK, 174 rows affected (0.03 sec)
Records: 174 Duplicates: 0 Warnings: 0
Query OK, 0 rows affected (0.01 sec)
Query OK, 103 rows affected (0.01 sec)
Records: 103 Duplicates: 0 Warnings: 0
Query OK, 0 rows affected (0.01 sec)
Query OK, 103 rows affected (0.00 sec)
Records: 103 Duplicates: 0 Warnings: 0
Query OK, 0 rows affected (0.01 sec)
Query OK, 0 rows affected (0.03 sec)
離開
mysql> exit |
|