mysql处理警告 Warning: Using a password on the command line interface can be insecure.

vim /etc/mysql/my.cnf

[mysqldump]
user=user_name
password=password

格式:
[只用密码的命令]
user=用户名
password=密码

  另外,在linux shell中,赋值的时候,=号前后千万不要出现空格

原文地址:https://www.cnblogs.com/byron0918/p/9582647.html