How to access (use) passwords stored in MySQL myLogin.cnf from batch and desktop applications

238 Views Asked by At

I need to reference the password stored in myLogin.cnf from a batch script and a desktop application's connection string. I've also added MYSQL_TEST_LOGIN_FILE as an environment variable, but the MySQL website mentions it once and only in the fact that it exists, and I can't find any viable documentation on it. Is this possible, and if so, how would I go about it? The syntax to reference the password would be great. My scripts and application work fine with hardcoded passwords, but...

My Setup is: Windows 10 running MySQL 8.0 (No Install) Thank you

0

There are 0 best solutions below