From 246654f11370fef7870ad6feb40b72f626f59ab5 Mon Sep 17 00:00:00 2001 From: octo Date: Sun, 2 Apr 2006 08:33:42 +0000 Subject: [PATCH] svn merge -r555:556 trunk tags/collectd-3.8.3 --- src/mysql.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mysql.c b/src/mysql.c index ac65f75a..4342dea0 100644 --- a/src/mysql.c +++ b/src/mysql.c @@ -366,6 +366,9 @@ static void mysql_read (void) return; query = "SHOW STATUS"; + if (mysql_get_server_version (con) >= 50002) + query = "SHOW GLOBAL STATUS"; + query_len = strlen (query); if (mysql_real_query (con, query, query_len)) -- 2.30.2