From 5d56b6677eab8d4f500cbb96e67388ae111d6de6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Canna=C3=B2?= Date: Mon, 1 Feb 2016 12:55:00 +0000 Subject: [PATCH] Allow empty password for mysql-monitor_password --- lib/MySQL_Thread.cpp | 14 +++++++------- src/proxysql.cfg | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/MySQL_Thread.cpp b/lib/MySQL_Thread.cpp index a0cb651b8..9996a8614 100644 --- a/lib/MySQL_Thread.cpp +++ b/lib/MySQL_Thread.cpp @@ -644,13 +644,13 @@ bool MySQL_Threads_Handler::set_variable(char *name, char *value) { // this is t } } if (!strcasecmp(name,"monitor_password")) { - if (vallen) { - free(variables.monitor_password); - variables.monitor_password=strdup(value); - return true; - } else { - return false; - } +// if (vallen) { + free(variables.monitor_password); + variables.monitor_password=strdup(value); + return true; +// } else { +// return false; +// } } if (!strcasecmp(name,"monitor_query_variables")) { if (vallen) { diff --git a/src/proxysql.cfg b/src/proxysql.cfg index ee3f9f0fd..58a46f485 100644 --- a/src/proxysql.cfg +++ b/src/proxysql.cfg @@ -6,7 +6,7 @@ -datadir="/tmp" +datadir="/var/lib/proxysql" admin_variables= {