diff --git a/src/mysql.c b/src/mysql.c
index 1ac62e9809e34077e455cdf85d8c00bd9fdf1ab3..bd9685b632b56a629642392ebd30855126e88407 100644 (file)
--- a/src/mysql.c
+++ b/src/mysql.c
#define BUFSIZE 512
-static char *host;
+static char *host = "localhost";
static char *user;
static char *pass;
static char *db = NULL;
if (getconnection () != NULL)
init_suceeded = 1;
else
+ {
+ syslog (LOG_ERR, "The `mysql' plugin will be disabled because `init' failed to connect to `%s'", host);
init_suceeded = 0;
+ }
#endif /* MYSQL_HAVE_READ */
return;