From 95ab21504c5b32e1fc0a3acca32fbc429e4b7416 Mon Sep 17 00:00:00 2001 From: Daniel Preussker Date: Tue, 18 Aug 2015 15:11:06 +0000 Subject: [PATCH] Fix MySQL Host Logic --- scripts/agent-local/mysql | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/agent-local/mysql b/scripts/agent-local/mysql index c5077c859e..82967c5200 100755 --- a/scripts/agent-local/mysql +++ b/scripts/agent-local/mysql @@ -268,8 +268,7 @@ function ss_get_mysql_stats( $options ) { $heartbeat = isset($options['heartbeat']) ? $options['heartbeat'] : $heartbeat; # If there is a port, or if it's a non-standard port, we add ":$port" to the # hostname. - $host_str = $host - . $port != 3306 ? ":$port" : ''; + $host_str = $host.($port != 3306 ? ":$port" : ''); debug(array('connecting to', $host_str, $user, $pass)); if (!extension_loaded('mysql') ) { debug("The MySQL extension is not loaded");