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

安装问题,到第六步初始化表失败。 #26

Open
macoco opened this issue Nov 20, 2016 · 3 comments
Open

安装问题,到第六步初始化表失败。 #26

macoco opened this issue Nov 20, 2016 · 3 comments

Comments

@macoco
Copy link

macoco commented Nov 20, 2016

系统是Mac OS 10.10.5。
1.用virtualenv,安装了python2.7。
2.Mysql-python和lxml可以安装,但依赖包怎么都安装不上。一直提示:
screen shot 2016-11-20 at 1 17 24 pm
折腾半天搞不定,去pip网站 https://pypi.python.org/pypi 搜了一下也没有发现这些依赖库,就先跳过,然后成功安装火狐36.0版本。
clone代码,安装依赖python库,完成,最后requirements.txt的库都安装完了。
screen shot 2016-11-20 at 12 29 14 pm

3.创建mysql数据库 done
4.安装和运行Redis done
5.更新配置文件local_settings done
6.初始化表,出问题了,报一大堆问题:
screen shot 2016-11-20 at 1 33 46 pm

安装目录结构:
screen shot 2016-11-20 at 2 45 09 pm

请教一下,可能是哪里出问题了?谢谢。

@yijingping
Copy link
Member

yijingping commented Nov 21, 2016

我也没有看出来是什么原因。貌似不是初始化表的问题。 懂的可以帮忙解答一下

@macoco
Copy link
Author

macoco commented Nov 21, 2016

不是依赖包的问题就好,我再研究一下,多谢了~

@macoco
Copy link
Author

macoco commented Nov 22, 2016

找到原因了,我的MySQL数据库设密码了,在local_settings.py的MySQL数据配置里把密码填上就好了。默认没有密码。
提示:django.db.utils.OperationalError: (1045, "Access denied for user 'root'@'localhost' (using password: NO)")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants