diff --git a/sandbox/start-sandbox b/sandbox/start-sandbox index fcfa3b0d..0a69b00c 100755 --- a/sandbox/start-sandbox +++ b/sandbox/start-sandbox @@ -248,7 +248,7 @@ APP="${FORK:-"mysql"}" if [ $type = "cluster" -o $APP = "pxc" ]; then # disabled for now because used perl module is not available everywhere and in some distros it returns ipv6 address # ip=$(perl -MNet::Address::IP::Local -le 'print Net::Address::IP::Local->public') - ip=$(hostname -i) + ip=$(hostname -i | cut -d" " -f2) version=`$PERCONA_TOOLKIT_SANDBOX/$mysqld -V --query_cache_size=0 --query_cache_type=0 --bind-address $ip 2>/dev/null | awk '{print $3}' | cut -d. -f 1,2`; else version=`$PERCONA_TOOLKIT_SANDBOX/$mysqld -V 2>/dev/null | awk '{print $3}' | cut -d. -f 1,2`;