From: octo Date: Sun, 2 Apr 2006 08:33:42 +0000 (+0000) Subject: svn merge -r555:556 trunk tags/collectd-3.8.3 X-Git-Tag: collectd-3.8.3 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3c53801a76a3c62e41150b9e984e3c6870ac161c;p=collectd.git svn merge -r555:556 trunk tags/collectd-3.8.3 --- 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))