-#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;
-
-static char init_suceeded = 0;
-
-static char *commands_file = "mysql/mysql_commands-%s.rrd";
-static char *handler_file = "mysql/mysql_handler-%s.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 *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[] =