I have a server, and I need to keep my database connection hanging constantly. Because, there are suspicions that when the MySQL connection is reset, the installed encoding is lost somewhere, and query errors begin. And 24 hours of connection will protect against this version of events.

  • I need his database connection to hang constantly. This Wishlist requires a very serious justification ... - Akina

1 answer 1

It seems to be solved with the crutch "SET NAMES ...;" when creating a connection. Tested with a timeout of 5 seconds, it works without errors.