Home | 简体中文 | 繁体中文 | 杂文 | Github | 知乎专栏 | Facebook | Linkedin | Youtube | 打赏(Donations) | About
知乎专栏

13.31. mysqldump: [Warning] Using a password on the command line interface can be insecure.

		
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