I have a ".my.cnf" setup that holds my root login for mysql related
commands, this aleviates me from remembering
and does not expose the password in the process execution.
sudo mysqldump --defaults-extra-file="~root/.my.cnf" ...
Example: marco@srv42:/etc/automysqlbackup$ sudo cat /root/.my.cnf
My feature request is to have an
option for "--defaults-extra-file" instead of user/password
Log in to post a comment.