You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -106,6 +106,22 @@ TRIGGER_PASSWORD=password
106
106
...
107
107
~~~
108
108
109
+
### Connection Timeouts (Recommended)
110
+
111
+
If your MySQL server (or a proxy in front of it) disconnects idle clients (low `wait_timeout` / `interactive_timeout`), the trigger process may crash with errors like:
112
+
113
+
`SQLSTATE[HY000] ... 4031 The client was disconnected by the server because of inactivity.`
114
+
115
+
To improve stability, enable a keepalive ping and/or set session variables for the trigger's MySQL metadata connection:
116
+
117
+
~~~env
118
+
# Ping MySQL periodically (seconds). Set to 0 to disable.
119
+
TRIGGER_KEEPALIVE=60
120
+
121
+
# Session variables applied on connect (comma-separated key=value pairs).
0 commit comments