From: octo Date: Sun, 2 Apr 2006 06:44:52 +0000 (+0000) Subject: Applied patch by James Byers to the MySQL plugin. It works now... X-Git-Tag: liboping-0.1.0~135 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d247bbb236a1033e49c6a214c8136876fb2d1b11;p=collectd.git Applied patch by James Byers to the MySQL plugin. It works now with MySQL >= 5.0.2, too. --- diff --git a/src/mysql.c b/src/mysql.c index 9a139869..822c6cce 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))