Tag - Secure local passwords

(More) Secure local passwords in MySQL 5.6 and up

I log into a lot of different servers running MySQL and one of the first things I do is create a file in my home directory called ‘.my.cnf’ with my credentials to that local mysql instance:

Shell

[client]
user=root
password=secret

123

[client]user=rootpassword=secret

This means I don’t have to type my password in every time, nor am I tempted to include it […]

Read more