Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#60 sudo mysqldump --defaults-extra-file="~root/.my.cnf" ...

open
nobody
None
5
2013-08-08
2012-08-20
mdi
No

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
[client]
user=root
pass=xyzabc123

My feature request is to have an
option for "--defaults-extra-file" instead of user/password

Discussion

  • Jeff Rule
    Jeff Rule
    2013-03-07

    I would also like this feature added. It could be yet another config in the different levels of configuration files.

     
  • John Crisp
    John Crisp
    2013-04-09

    +1

    Don't like having the root mysql password littered about everywhere