Warning: Using a password on the command line interface can be insecure.
Posted winfosy
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Warning: Using a password on the command line interface can be insecure.相关的知识,希望对你有一定的参考价值。
1、编辑文件 /usr/local/mysql-5.6/my.cnf
在 [mysqldump] 下边加入
user=你的mysql账号
password=你的mysql密码
2、重启mysql
3、数据库备份
/usr/local/mysql-5.6/bin/mysqldump --defaults-extra-file=/usr/local/mysql-5.6/my.cnf -S /tmp/mysql-5.6.sock 数据库 表 > xxx.sql
以上是关于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.解决办法