We've got a backup script which takes a mysql dump every night, and to authenticate we've got a .my.cnf
file with
[mysqldump]
password=somepass
However, every mysql user that doesn't pass in a password seems to inherit this password.
Is it possible to lock this into a combination? e.g.
[mysqldump@backupuser]
password=somepass
so it only gets used by that specific user?