当前位置:网站首页>mysqldump: [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.
2022-07-17 00:17:00 【搞什么滚去学习】
mysqldump: [Warning] Using a password on the command line interface can be insecure.
MySQL 5.6 警告信息 command line interface can be insecure 修复

在命令行输入密码,就会提示这些安全警告信息。
Warning: Using a password on the command line interface can be insecure.
注: mysql -u root -pPASSWORD 或 mysqldump -u root -pPASSWORD 都会输出这样的警告信息.
1、针对mysql
mysql -u root -pPASSWORD 改成mysql -u root -p 在输入密码即可.
2、mysqldump就比较麻烦了,通常都写在scripts脚本中。
解决方法:
对于 mysqldump 要如何避免出现(Warning: Using a password on the command line interface can be insecure.) 警告信息呢?
vim /etc/mysql/my.cnf
[mysqldump]
user=your_backup_user_name
password=your_backup_password
修改完配置文件后, 只需要执行mysqldump 脚本就可以了。备份脚本中不需要涉及用户名密码相关信息
边栏推荐
- 正则、扩展表达式,sed文本处理器与awk工具、用脚本改IP地址
- SSH Remote Control and access
- RHCE ansible first operation
- Redis之简单动态字符串SDS
- 10.系统安全及应用
- Dynamic programming problem - Small Soldiers rush forward
- Conditional statement of shell script
- LAMP平台部署及应用
- Shell script variables, script writing and execution (deploy Apache and remote backup MySQL database)
- Usage instructions for MDK keil/arm printf
猜你喜欢
随机推荐
Shell编程规范与变量
RHCE8学习指南 第4章 获取帮助
Traversal of binary tree
RHCE-ansible第二次作业
HCIA static comprehensive experiment
摇摆摇摆~防火墙
Shell脚本case分支语句、扒匿名登录FTP的max地址
MySQL差删改查用户登录修改密码
Rip comprehensive experiment
SSH Remote Control and access
MySQL数据库安装
MySQL备份和恢复
Understand the switch and its role
第一篇博客------自我介绍
shell脚本之条件语句
HCIA第一次静态路由实验
Understanding of array and bubbling
C语言回调函数 & sprinf 实际应用一例
RIP综合实验
Multi layer packet structure and TCP triple handshake









