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 脚本就可以了。备份脚本中不需要涉及用户名密码相关信息。

转载于:https://blog.51cto.com/fzhddn/2053231

MySQL 5.6 警告信息 command line interface can be insec相关推荐

  1. linux安装mysql时使用临时密码登录不进去mysql: [Warning] Using a password on the command line interface can be insec

    1.在root用户下,停止mysql service mysqld stop 2.vi /etc/my.cnf 在[mysqld]的段中加上一句skip-grant-tables [mysqld] s ...

  2. [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. 来自TMySQL用户,包括很多开发和G ...

  3. MySQL 基准测试(mysqlslap)出现 Using a password on the command line interface can be insecure 警告

    问题描述:在使用 mysqlslap 进行基准测试时,出现警告 mysqlslap: [Warning] Using a password on the command line interface ...

  4. MySQL 5.6 Warning - Using a password on the command line interface can be insecur 解决方案

    MySQL 5.6 Warning - Using a password on the command line interface can be insecur 解决方案 参考文章: (1)MySQ ...

  5. 命令行导出和导入数据库 How to export and import MySQL database using command line Interface...

    导出 : To export MySQL database, open putty on Windows or Terminal in either MAC or Linux OS, Go to th ...

  6. mysql备份时过滤掉某些库 以及 去掉Warning: Using a password on the command line interface can be insecure.提示信息...

    在对mysql进行完整备份时使用--all-database参数 # mysqldump -u root -h localhost -p --all-database > /root/all.s ...

  7. 已解决:mysql: [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. 解决 将密码改为后 ...

  8. 登录mysql时遇到了:mysql: [Warning] Using a password on the command line interface can be insecure.

    登录mysql时遇到了:mysql: [Warning] Using a password on the command line interface can be insecure. 问题: [ro ...

  9. mysql: “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." 解决方法 参考文 ...

最新文章

  1. 阿里巴巴开源的 Blink 实时计算框架真香
  2. Laravel 中的 Many-To-Many
  3. retinaface 改进
  4. 无关于目标or特定于目标:简单且有效的零样本立场检测对比学习方法
  5. boost::mp11::mp_remove_if_q相关用法的测试程序
  6. arcgis python脚本实现从界面选择输入输出_ArcGIS Python脚本使用
  7. python 正整数 连续多个数之和_vijos - P1302连续自然数和 (公式推导 + python)
  8. 破格晋升!一批高校教师脱颖而出
  9. 全国计算机考试真考题库4,全国计算机等级考试无纸化真考题库试卷二级C--(4)资料.docx...
  10. java 注解学习_JAVA注解学习
  11. 打开桌面计算机投屏到扩展屏,无线投屏新玩法——Windows电脑扩展屏幕投屏
  12. 招商银行网络科技笔试
  13. 善待自己 改变命运的N个人生哲理
  14. 反汇编基础:winRar去除广告
  15. OA协同办公系统-day01
  16. DCM protocol Diagnostic session
  17. MySQL面试:索引为啥使用B+树而不是B树
  18. echarts结合阿里云地图json选择器展示地图
  19. 自学python网站-杭州python自学网站
  20. Netbeans 7.0 安装 Python 插件的方法

热门文章

  1. VC++“内存资源不足,无法完成此操作”——解决的心路历程(User对象)
  2. 激光导引头电子舱测试系统软件的研究与开发
  3. MongoDB 常见问题 - 解决找不到 mongo、mongod 命令的问题
  4. 一些值得一看的博友文章地址
  5. Hbase葱岭探秘--JavaApi实践
  6. CS231n_learn
  7. 马尔可夫决策过程(Markov Decision Process)学习笔记
  8. VOIP信号传输过程
  9. css 一行超出显示省略号 多行超出显示省略号
  10. Promise is a promise