MySQL数据库备份的时候报错显示密码不安全?

[root@centos199 mysql]# mysqldump -uroot -ppassword cz-office > mysql38.sqlWarning: Using a password on the command line interface can be insecure.显示全部

[root@centos199 mysql]# mysqldump -uroot -ppassword cz-office > mysql38.sql
Warning: Using a password on the command line interface can be insecure.

收起
参与7

查看其它 1 个回答wangql的回答

wangqlwangql系统工程师NULL

在你的my.cnf加上:
[mysqldump]
user=xxx
password=xxxxxx

备份语句把-u和-p删了就行

IT咨询服务 · 2021-03-25
浏览1452

回答者

wangql
wangql41446
系统工程师NULL
擅长领域: 存储备份软件定义存储

wangql 最近回答过的问题

回答状态

  • 发布时间:2021-03-25
  • 关注会员:3 人
  • 回答浏览:1452
  • X社区推广