From 4914f25c523bd1c72a30ae2e2f913c3546b7fdfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Scheibe?= Date: Thu, 29 Aug 2024 08:43:34 +0200 Subject: [PATCH] Change processlist query to support ONLY_FULL_GROUP_BY sql_mode (#684) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Otherwise "Error 1055: 'information_schema.processlist.HOST' isn't in GROUP BY" is raised. Signed-off-by: René Scheibe --- collector/info_schema_processlist.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collector/info_schema_processlist.go b/collector/info_schema_processlist.go index 80d2c493..fbe33e44 100755 --- a/collector/info_schema_processlist.go +++ b/collector/info_schema_processlist.go @@ -38,7 +38,7 @@ const infoSchemaProcesslistQuery = ` FROM information_schema.processlist WHERE ID != connection_id() AND TIME >= %d - GROUP BY user, SUBSTRING_INDEX(host, ':', 1), command, state + GROUP BY user, host, command, state ` // Tunable flags.