From f1cef328a6f38e4da3c33a7154a0e0b89f2daa5a Mon Sep 17 00:00:00 2001 From: "M. Sean Finney" Date: Thu, 13 Oct 2005 09:55:31 +0000 Subject: check mysql now reads [client] defaults from my.cnf (debian bug #278817) git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1244 f882894a-f735-0410-b71e-b25c423dba1c --- plugins/check_mysql.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'plugins/check_mysql.c') diff --git a/plugins/check_mysql.c b/plugins/check_mysql.c index 20901e63..3194eced 100644 --- a/plugins/check_mysql.c +++ b/plugins/check_mysql.c @@ -65,6 +65,8 @@ main (int argc, char **argv) /* initialize mysql */ mysql_init (&mysql); + mysql_options(&mysql,MYSQL_READ_DEFAULT_GROUP,"client"); + /* establish a connection to the server and error checking */ if (!mysql_real_connect(&mysql,db_host,db_user,db_pass,db,db_port,NULL,0)) { if (mysql_errno (&mysql) == CR_UNKNOWN_HOST) -- cgit v1.2.3