MySQL manage disconnection then reconnect

Hey there, is there any way to detect when database connection has been lost, then reconnect? I need to do that because I’m working on a remote MySQL db…

Tnx.

Try https://golang.org/pkg/database/sql/#DB.Ping

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.