As part of my work, I manage a mySQL cluster composed of 3 Ubuntu 14.04 machines. All 3 machines should be identical.
On machines 1 and 2, when I run sudo service mysql status
, I get a status report with uptime, etc, the equivalent of running /usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf version
. This behavior is consistent with the /etc/init.d/mysql file, which has the entry:
'status')
if mysqld_status check_alive nowarn; then
log_action_msg "$($MYADMIN version)"
else
log_action_msg "MySQL (Percona Server) is stopped."
exit 3
fi
;;
(the $MYADMIN variable resolves to that command I posted earlier).
Machine number 3 however, does not behave like this. Upon running sudo service mysql status
, I am given the standard Ubuntu status response, mysql start/running, process 2234
.
The /etc/init.d/mysql file on machine 3 is identical to the files on 1 and 2 (checked with vimdiff). If I run the mysqladmin
command by hand, it returns the expected output.
What gives? Is there something that would override the script in init.d?
Although the cluster seems to be working as expected, I don't like inconsistencies in computers... makes me feel like something I'm not aware of is happening.
Thanks in advance for any help you can provide.