Code

`DataDir' and `LogFile' were not valid in `Client' mode. This fixes it..
[collectd.git] / src / mysql.c
index 42429e988f3f50c1cfa218628467f2d6fff8b0a5..83163d58905165200c351178b40005f5d0c8ddd6 100644 (file)
@@ -44,7 +44,9 @@ static char *user;
 static char *pass;
 static char *db = NULL;
 
+#if MYSQL_HAVE_READ
 static char  init_suceeded = 0;
+#endif
 
 static char *commands_file = "mysql/mysql_commands-%s.rrd";
 static char *handler_file = "mysql/mysql_handler-%s.rrd";