-#if COLLECT_LIBMYSQL
-# define MYSQL_HAVE_READ 1
-#else
-# define MYSQL_HAVE_READ 0
-#endif
-
-#define BUFSIZE 512
-
-static char *host = "localhost";
-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";
-static char *threads_file = "mysql/mysql_threads.rrd";
-static char *traffic_file = "traffic-mysql.rrd";
-
-static char *commands_ds_def[] =
-{
- "DS:value:COUNTER:25:0:U",
- NULL
-};
-static int commands_ds_num = 1;
-
-static char *handler_ds_def[] =
-{
- "DS:value:COUNTER:25:0:U",
- NULL
-};
-static int handler_ds_num = 1;
-
-static char *threads_ds_def[] =
-{
- "DS:running:GAUGE:25:0:U",
- "DS:connected:GAUGE:25:0:U",
- "DS:cached:GAUGE:25:0:U",
- NULL
-};
-static int threads_ds_num = 3;
-
-static char *traffic_ds_def[] =
-{
- "DS:incoming:COUNTER:25:0:U",
- "DS:outgoing:COUNTER:25:0:U",
- NULL
-};
-static int traffic_ds_num = 2;
-
-static char *config_keys[] =