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

这个工程,表结构怎么去创建? #20

Open
lamborpang opened this issue Jul 27, 2017 · 1 comment
Open

这个工程,表结构怎么去创建? #20

lamborpang opened this issue Jul 27, 2017 · 1 comment

Comments

@lamborpang
Copy link

这个工程,表结构怎么去创建?

@changtailiang
Copy link

可以试试这么做:
mysql -uroot -pPASSWORD -e "CREATE DATABASE IF NOT EXISTS aiopms DEFAULT CHARSET utf8 COLLATE utf8_general_ci;"
mysql -uroot -pPASSWORD aipoms < static/db/aiopms.sql
mysql -uroot -pPASSWORD aiopms -e "update pms_users set password=md5('你想要的密码');"

数据库创建用户、授权什么的,自己去查MySQL使用手册就好了。

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