Quantcast
Channel: MySQL Forums - Security
Viewing all articles
Browse latest Browse all 306

MYSQL_PWD env variable precedence (1 reply)

$
0
0
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.

Viewing all articles
Browse latest Browse all 306

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>