我在安装这个数据库时挣扎不已。我看过并尝试过许多不同的导入方法,但仍然没有任何方法。我明白这可能已经发布之前,但我找不到一个答案,使这项工作。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