我在安裝這個數據庫時掙扎不已。我看過並嘗試過許多不同的導入方法,但仍然沒有任何方法。我明白這可能已經發布之前,但我找不到一個答案,使這項工作。MySQL員工數據庫安裝
似乎沒有任何東西可以看到.DUMP文件,但肯定存在;
What the Temp Directory looks like
我使用WAMP的新版本至極我已經能夠使用安裝「的Sakila DB」
我已經解壓縮從https://github.com/datacharmer/test_db到以下目錄的完整文件; C:\ temp \ test_db-master
然後我用CMD從這個位置打開MySQL應用程序:C:\ Users \ skino>「C:\ Program Files \ MySQL \ MySQL Workbench 6.3 CE \ mysql.exe」 - U盤根-p
這則給了我的MySQL>提示
在此之後我用下面的命令到CD的目錄並加載SQL。
SOURCE C:/temp/test_db-master/employees.sql
,然後我得到了下面......誰能告訴我在哪裏,我去錯了
mysql> SOURCE C:/temp/test_db-master/employees.sql
Query OK, 8 rows affected (0.91 sec)
Query OK, 1 row affected (0.00 sec)
Database changed
+-----------------------------+
| INFO |
+-----------------------------+
| CREATING DATABASE STRUCTURE |
+-----------------------------+
1 row in set (0.00 sec)
Query OK, 0 rows affected, 6 warnings (0.00 sec)
Query OK, 0 rows affected (0.00 sec)
+------------------------+
| INFO |
+------------------------+
| storage engine: InnoDB |
+------------------------+
1 row in set (0.00 sec)
Query OK, 0 rows affected (0.23 sec)
Query OK, 0 rows affected (0.56 sec)
Query OK, 0 rows affected (0.29 sec)
Query OK, 0 rows affected (0.31 sec)
Query OK, 0 rows affected (0.38 sec)
Query OK, 0 rows affected (0.31 sec)
Query OK, 0 rows affected (0.03 sec)
Query OK, 0 rows affected (0.05 sec)
Query OK, 0 rows affected (0.00 sec)
+---------------------+
| INFO |
+---------------------+
| LOADING departments |
+---------------------+
1 row in set (0.00 sec)
ERROR:
Failed to open file 'load_departments.dump', error: 2
+-------------------+
| INFO |
+-------------------+
| LOADING employees |
+-------------------+
1 row in set (0.00 sec)
ERROR:
Failed to open file 'load_employees.dump', error: 2
+------------------+
| INFO |
+------------------+
| LOADING dept_emp |
+------------------+
1 row in set (0.00 sec)
ERROR:
Failed to open file 'load_dept_emp.dump', error: 2
+----------------------+
| INFO |
+----------------------+
| LOADING dept_manager |
+----------------------+
1 row in set (0.00 sec)
ERROR:
Failed to open file 'load_dept_manager.dump', error: 2
+----------------+
| INFO |
+----------------+
| LOADING titles |
+----------------+
1 row in set (0.00 sec)
ERROR:
Failed to open file 'load_titles.dump', error: 2
+------------------+
| INFO |
+------------------+
| LOADING salaries |
+------------------+
1 row in set (0.00 sec)
ERROR:
Failed to open file 'load_salaries1.dump', error: 2
ERROR:
Failed to open file 'load_salaries2.dump', error: 2
ERROR:
Failed to open file 'load_salaries3.dump', error: 2
ERROR:
Failed to open file 'show_elapsed.sql', error: 2
mysql>
https://stackoverflow.com/help/someone-answers – RiggsFolly