码迷,mamicode.com
首页 > 其他好文 > 详细

Warning: Using a password on the command line interface can be insecure.解决办法

时间:2017-07-31 23:27:35      阅读:332      评论:0      收藏:0      [点我收藏+]

标签:version   target   解决   state   dev   -bash   解决办法   tar   tle   

被一个小朋友问到,直接公布答案:

If your MySQL client/server version is a 5.6.x a way to avoid the WARNING message are using the mysql_config_editor tools:

mysql_config_editor set --login-path=local --host=localhost --user=username --password

Then you can use in your shell script:

mysql --login-path=local -e "statement"

instead of:

mysql -u username -p pass -e "statement"

Warning: Using a password on the command line interface can be insecure.解决办法

标签:version   target   解决   state   dev   -bash   解决办法   tar   tle   

原文地址:http://www.cnblogs.com/paul8339/p/7266231.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!