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

must have one register DataBase alias named `default` #56

Closed
banneman opened this Issue Jun 1, 2017 · 4 comments

Comments

Projects
None yet
4 participants
@banneman

banneman commented Jun 1, 2017

must have one register DataBase alias named default

@lifei6671

This comment has been minimized.

Owner

lifei6671 commented Jun 1, 2017

请检查你的数据库配置是否正确。

@chasonyang

This comment has been minimized.

chasonyang commented Jun 1, 2017

修改 db_adapter=mysql|sqlite3
二选一,如: db_adapter=mysql

@kuerme

This comment has been minimized.

kuerme commented Jun 2, 2017

@lifei6671 我昨天也遇到这个问题,不是数据库配置不正确的原因,而是在使用sqlite3时,默认sqlite数据库的地址是: ./database/mindoc.db; 而默认项目里没有database这个目录; 从而导致因无法创建sqlite的db文件而报出这个错误;

解决方法: 数据库地址更改为./mindoc.db, 或者在根目录下创建一个有读写权限的database目录后就ok了;

给作者的建议是,所有根据路径创建文件的功能部分,请务必考虑判断目录路径是否存在,如果不存在,则自动创建路径中的所有目录;

@lifei6671 lifei6671 closed this Jun 6, 2017

@lifei6671

This comment has been minimized.

Owner

lifei6671 commented Jun 6, 2017

@qetee 0.4版本已修复。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment