Warning: Using a password on the command line interface can be insecure.解决办法
Posted 圆善的学习园地
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Warning: Using a password on the command line interface can be insecure.解决办法相关的知识,希望对你有一定的参考价值。
被一个小朋友问到,直接公布答案:
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.解决办法的主要内容,如果未能解决你的问题,请参考以下文章
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.
MYSQL报警:Warning: Using a password on the command line interface can be insecure.
mysql 备份报错mysqldump: [Warning] Using a password on the command line interface can be insecure.
消除MySQL连接时的Warning:Using a password on the command line interface can be insecure.
Warning: Using a password on the command line interface can be insecure.解决办法