Page tree

Welcome to FreeSoftwareServers Confluence Wiki

Skip to end of metadata
Go to start of metadata

http://stackoverflow.com/questions/9293042/mysqldump-without-the-password-prompt/32409448#32409448

nano /root/.my.cnf && chmod 400 /root/.my.cnf && chown root:root /root/.my.cnf
[mysql]
user=username
password=passwd

[mysqldump]
user=username
password=passwd

[mysqldiff]
user=username
password=passwd

[client]
user=username
password=passwd
[mysql]
user=root
password=passwd

[mysqldump]
user=root
password=passwd

[mysqldiff]
user=root
password=passwd

[client]
user=root
password=passwd
--defaults-extra-file=/root/.my.cnf
--defaults-file=/root/.my.cnf
  • No labels

1 Comment