在 MySql 5.5.2.24 上安装员工示例数据库? [英] Installing Employees Sample Database on MySql 5.5.2.24?

查看:74
本文介绍了在 MySql 5.5.2.24 上安装员工示例数据库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从 http://dev.mysql 安装示例数据库.com/doc/employee/en/index.html.我在 Windows 7 机器上安装了全新的 WAMP.MySql 目前没有设置密码.

I am trying to install sample database from http://dev.mysql.com/doc/employee/en/index.html. I have fresh WAMP installation on my Windows 7 machine. There is currently no password setup on MySql.

当我尝试使用下面的命令运行employees.sql 时,它会读取文件,创建数据库和表,但无法加载转储文件.给出的错误是:无法打开文件 load_titles.dump 错误 2

When I try to run employees.sql using command bellow it reads the file creates the database and tables, but it can't load dump files. Error given is: failed to open file load_titles.dump error 2

source C:\temp\employees_db\employees.sql

推荐答案

您需要将转储文件的完整路径放在 Employees.sql 文件中.导入前在文本编辑器上编辑此文件.

You need put the full path to the dump files in the Employees.sql file. Edit this file on your text editor before the import.

示例:

'c:/user/download/load_departments.dump' 而不是 'load_departments.dump'.

'c:/user/download/load_departments.dump' instead 'load_departments.dump'.

这篇关于在 MySql 5.5.2.24 上安装员工示例数据库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆