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

数据库无法保持长链接 #99

Closed
Triple-Z opened this issue May 15, 2019 · 2 comments
Closed

数据库无法保持长链接 #99

Triple-Z opened this issue May 15, 2019 · 2 comments
Labels
bug Something isn't working

Comments

@Triple-Z
Copy link
Member

上游 Driver 的问题,需要设置参数,使用连接池。

go-sql-driver/mysql#257 (comment)

@Triple-Z Triple-Z added the bug Something isn't working label May 15, 2019
@Triple-Z
Copy link
Member Author

Triple-Z commented Jun 6, 2019

无法定位问题,在 GetDB() 中加入了 Ping() ,如果失败会输出日志,已部署到 dev 环境中。

@Triple-Z
Copy link
Member Author

Triple-Z commented Jun 7, 2019

dev 测试了一下没发现问题,已上线至 staging 看情况。

@arcosx arcosx closed this as completed Apr 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants