Open Cougar opened 5 years ago
https://github.com/olafz/percona-clustercheck/blob/d5da8bed4ead8440dbef33c8959be42e37e881ae/clustercheck#L38
always sets MYSQL_USERNAME to "clustercheckuser" if it is missing or empty. This will add --user parameter here
MYSQL_USERNAME
--user
https://github.com/olafz/percona-clustercheck/blob/d5da8bed4ead8440dbef33c8959be42e37e881ae/clustercheck#L49-L51
and with that it always overrides username in /etc/my.cnf.
/etc/my.cnf
The right expansion should be:
MYSQL_USERNAME="${MYSQL_USERNAME-clustercheckuser}"
Also look at https://github.com/olafz/percona-clustercheck/pull/23#issuecomment-468837312
https://github.com/olafz/percona-clustercheck/blob/d5da8bed4ead8440dbef33c8959be42e37e881ae/clustercheck#L38
always sets
MYSQL_USERNAME
to "clustercheckuser" if it is missing or empty. This will add--user
parameter herehttps://github.com/olafz/percona-clustercheck/blob/d5da8bed4ead8440dbef33c8959be42e37e881ae/clustercheck#L49-L51
and with that it always overrides username in
/etc/my.cnf
.The right expansion should be:
Also look at https://github.com/olafz/percona-clustercheck/pull/23#issuecomment-468837312