Hello,
I thing I've hitted a bug, but first I'd like to ask to this forum if it is really a bug or the behavior is expected and somehow justified.
Trying to avoid the "Using a password on a command line is insecure" warning, I was trying to use the env variable "MYSQL_PWD". It works fine, until you use a my.cnf file with the password parameter on the [client] section.
The password on the config file takes precedence over the env variable, which I think it's incorrect, because maybe the password on the config file belongs to a different user than the one trying to connect via the env variable password.
Regards.
I thing I've hitted a bug, but first I'd like to ask to this forum if it is really a bug or the behavior is expected and somehow justified.
Trying to avoid the "Using a password on a command line is insecure" warning, I was trying to use the env variable "MYSQL_PWD". It works fine, until you use a my.cnf file with the password parameter on the [client] section.
The password on the config file takes precedence over the env variable, which I think it's incorrect, because maybe the password on the config file belongs to a different user than the one trying to connect via the env variable password.
Regards.