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中,赋值的时候,=号前后千万不要出现空格

posted @ 2018-09-04 09:43  不将就!  阅读(363)  评论(0编辑  收藏  举报