#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

     
  • Jim Cooley

    Jim Cooley - 2013-08-08

    I created a patch that provides a workaround for this. See ticket #29 in Patches.
    https://sourceforge.net/p/automysqlbackup/patches/29/

     
    Last edit: Jim Cooley 2013-08-08

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks