We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
2023/03/06 15:02:18 dial tcp: lookup 127.0.0.1:3306: no such host panic: failed to connect database
默认127.0.0.0.1:3306 结果报错了,我以为是我的网络有问题,结果。。。。。 原来是我把后面两个数据库都写上了,因为平时只用过mysql和sqlite3,我就说怪了,怎么不指定端口?postgres不认识
driver: mysql addr: root:root@tcp(host:port)/guora?charset=utf8&parseTime=True&loc=Local
The text was updated successfully, but these errors were encountered:
嗯呢 配置 mysql server 端地址也如 gorm 的写法一致就行
Sorry, something went wrong.
这里确实也是透传
guora/internal/database/db.go
Line 22 in d1df46e
是个好建议 感谢
No branches or pull requests
2023/03/06 15:02:18 dial tcp: lookup 127.0.0.1:3306: no such host
panic: failed to connect database
默认127.0.0.0.1:3306
结果报错了,我以为是我的网络有问题,结果。。。。。
原来是我把后面两个数据库都写上了,因为平时只用过mysql和sqlite3,我就说怪了,怎么不指定端口?postgres不认识
driver: mysql
addr: root:root@tcp(host:port)/guora?charset=utf8&parseTime=True&loc=Local
The text was updated successfully, but these errors were encountered: