当前位置:网站首页>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 脚本就可以了。备份脚本中不需要涉及用户名密码相关信息
边栏推荐
猜你喜欢
随机推荐
Leetcode 198:House Robber
MySQL初探
Lintcode 366:fibonacci Fibonacci sequence
多层数据包结构及TCP三次握手
NFS服务
Rsync remote synchronization (incremental backup)
MySQL备份和恢复
静态路由综合实验
ENSP静态路由实验
MySQL主从复制+读写分离
Rip comprehensive experiment
Firewall firewall
RHCE8学习指南第一章 安装RHEL8.4
Shell script variables, script writing and execution (deploy Apache and remote backup MySQL database)
HCIA_OSPF实验
MySQL backup and recovery
OSPF comprehensive experiment
4、AsyncTool框架的一些思考
5、AsyncTool框架竟然有缺陷?
Shell script integer value comparison, logic test, if statement, extract performance monitoring indicators









