知乎专栏 |
mysqldump: [Warning] Using a password on the command line interface can be insecure.
vim ~/.my.cnf [mysqldump] user=root password=123456
[root@netkiller neo]# mysqldump -h 192.168.30.40 neo [root@netkiller neo]# mysqldump --defaults-extra-file=~/.my.cnf netkiller > netkiller.sql