Confirmed with PXC 5.5.41 and 5.6.22. It seems, this issue is only with deb packages.
mysqld_status () { mysqld_pid=$(cat $pid_file 2>/dev/null)
if [ ! $mysqld_pid ];then echo "MySQL PID not found, pid_file detected/guessed: $pid_file" | $ERR_LOGGER if [ "$1" = "check_dead" ]; then return 0 fi return 1 fi
ping_alive=1 ps_alive=0
soutput=$(mysql -u root -pabcd -e 'select 1;' 2>&1 | grep 'ERROR 2002') [ "$soutput" ] && ping_alive=0
Confirmed with PXC 5.5.41 and 5.6.22. It seems, this issue is only with deb packages.
mysqld_status () { pid=$(cat $pid_file 2>/dev/null)
mysqld_
if [ ! $mysqld_pid ];then
echo "MySQL PID not found, pid_file detected/guessed: $pid_file" | $ERR_LOGGER
if [ "$1" = "check_dead" ]; then
return 0
fi
return 1
fi
ping_alive=1
ps_alive=0
soutput=$(mysql -u root -pabcd -e 'select 1;' 2>&1 | grep 'ERROR 2002')
[ "$soutput" ] && ping_alive=0