Hi,
I have a MySQL host which has .my.cnf
and .mylogin.cnf
in /root
(created by puppet, not under our control).
This file contains only the socket to the database, but no user/password data.
The problem is that the presence of this file (and .my.cnf
as well) influences/deactivates the settings which the MySQL plugin gives mysql/msqladmin on the commandline with
--defaults-extra-file=/etc/check_mk/mysql.cfg
(see MySQL :: MySQL 8.0 Reference Manual :: 4.2.2.2 Using Option Files, Table 4.2)
As a consequence, the MySQL plugin does not connect with the correct parameters.
As soon as I move .mylogin.cnf
away, the plugin works as expected.
Is there any way to connect with solely the parameters set in the Plugin cfg file?
Thanks,
Simon
EDIT: See also this post: Mk_mysql plugin simply ignores my mysql.cfg - #15 by Dirk