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

安装方法提示Access denied for user 'admin'@'localhost #1

Open
jydd opened this issue Jul 2, 2018 · 4 comments
Open

安装方法提示Access denied for user 'admin'@'localhost #1

jydd opened this issue Jul 2, 2018 · 4 comments

Comments

@jydd
Copy link

jydd commented Jul 2, 2018

安装说明没看到,能跟我说下吗,我想学习

@fushall
Copy link
Owner

fushall commented Jul 2, 2018

@jydd 应该是没改configs/里面的flask_sqlalchemy.py里面的SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://admin:admin@localhost:3307/myblog?charset=utf8mb4',这个需要根据自己的数据库情况,相应的修改。
SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://用户名:密码@域名或者IP:端口号/数据库名?charset=编码格式'

@jydd
Copy link
Author

jydd commented Jul 2, 2018

我想问下,数据库表结构的文件在哪

@fushall
Copy link
Owner

fushall commented Jul 2, 2018

@jydd 在models里面。比如models下的tag.py里面的TagModel类,就是一个(orm数据库的)表结构。

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

3 participants
@jydd @fushall and others