summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2a139ee)
raw | patch | inline | side by side (parent: 2a139ee)
author | M. Sean Finney <seanius@users.sourceforge.net> | |
Thu, 13 Oct 2005 09:55:31 +0000 (09:55 +0000) | ||
committer | M. Sean Finney <seanius@users.sourceforge.net> | |
Thu, 13 Oct 2005 09:55:31 +0000 (09:55 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1244 f882894a-f735-0410-b71e-b25c423dba1c
plugins/check_mysql.c | patch | blob | history |
diff --git a/plugins/check_mysql.c b/plugins/check_mysql.c
index 20901e639d908afd7f211469d8e50fe69f95a56b..3194ecede85b73f7ef572d06467848d066772e16 100644 (file)
--- a/plugins/check_mysql.c
+++ b/plugins/check_mysql.c
/* 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)