Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

导入sql脚本时出错 #3

Closed
e2ghost opened this issue Dec 17, 2013 · 2 comments
Closed

导入sql脚本时出错 #3

e2ghost opened this issue Dec 17, 2013 · 2 comments

Comments

@e2ghost
Copy link

e2ghost commented Dec 17, 2013

导入data/yincart-1.0.7rc6.sql时发生以下错误
ERROR 1217 (23000) at line 3940: Cannot delete or update a parent row: a foreign key constraint fails

我的MySQL版本是5.1.x

@yii-simon
Copy link

修改原来的数据库,改名之后再导入……先建个空数据库,在导入……

@e2ghost
Copy link
Author

e2ghost commented Dec 17, 2013

汗,没有注意看sql文件,一开始是直接导入才出错

@e2ghost e2ghost closed this as completed Dec 17, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants