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

使用数据库连接时提示如下错误,请问是我的参数吗 #175

Closed
kss-noc opened this issue Oct 11, 2022 · 1 comment
Closed

Comments

@kss-noc
Copy link

kss-noc commented Oct 11, 2022

如下
2022-10-11 17:51:59 INFO init apns client success...
2022-10-11 17:51:59 INFO load route [register_compat] success...
2022-10-11 17:51:59 INFO load route [misc] success...
2022-10-11 17:51:59 INFO load route [push] success...
2022-10-11 17:51:59 INFO load route [register] success...
2022-10-11 17:51:59 INFO load route [push_compat] success...
2022-10-11 17:51:59 FATAL failed to open database connection (bark-server:VWIAwgOSP5@127.0.0.1/bark-server): default addr for network '127.0.0.1' unknown
github.com/finb/bark-server/v2/database.NewMySQL
github.com/finb/bark-server/v2/database/mysql.go:30
main.main.func1
github.com/finb/bark-server/v2/main.go:180
github.com/urfave/cli/v2.(*App).RunContext
github.com/urfave/cli/v2@v2.11.1/app.go:386
github.com/urfave/cli/v2.(*App).Run
github.com/urfave/cli/v2@v2.11.1/app.go:251
main.main
github.com/finb/bark-server/v2/main.go:207
runtime.main
runtime/proc.go:250

@vayci
Copy link
Contributor

vayci commented Nov 7, 2022

遇到了同样的问题,希望能对你有用
-dsn=root:VWIAwgOSP5@tcp(127.0.0.1:3306)/bark-server
或对括号转义
-dsn=root:VWIAwgOSP5@tcp\(127.0.0.1:3306\)/bark-server

@Finb Finb closed this as completed Sep 20, 2024
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