-
Notifications
You must be signed in to change notification settings - Fork 369
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
Windows无法运行 #52
Comments
抱歉,最近有点忙,一直没有更新教程,现在数据库连接需要在 app.conf 中进行修改,感谢反馈 |
我在app.conf也配置了,两边都修改了,还是不行。我第三张图就是app.conf的配置 |
重新migrate即可 |
也许是你
重新migrate即可。 |
@WWILV 我知道原因了,你是用的是源代码吧,源码目前有一些小bug,但是最新编译的版本没有这些bug,如果你要用运行源码的话,在app.conf中添加一行 dbUser=你的数据库用户名 即可 |
emmmmmm我太难了。怪不得一直sql: database is closed |
数据库正常且可以连接,但是无法成功运行
auxpi:runtime error: index out of range
Stack
/usr/local/Cellar/go/1.11/libexec/src/runtime/asm_amd64.s:522
/usr/local/Cellar/go/1.11/libexec/src/runtime/panic.go:513
/usr/local/Cellar/go/1.11/libexec/src/runtime/panic.go:44
/Users/aimer/go/src/github.com/auxpi/controllers/index.go:39
/Users/aimer/go/src/github.com/auxpi/controllers/index.go:74
/usr/local/Cellar/go/1.11/libexec/src/runtime/asm_amd64.s:522
/usr/local/Cellar/go/1.11/libexec/src/reflect/value.go:447
/usr/local/Cellar/go/1.11/libexec/src/reflect/value.go:308
/Users/aimer/go/pkg/mod/github.com/astaxie/[email protected]/router.go:852
/usr/local/Cellar/go/1.11/libexec/src/net/http/server.go:2741
/usr/local/Cellar/go/1.11/libexec/src/net/http/server.go:1847
/usr/local/Cellar/go/1.11/libexec/src/runtime/asm_amd64.s:1333
报错基本都是
[Models Error]: sql: database is closed ===>[options.go:60]
The text was updated successfully, but these errors were encountered: