mysql数据库升级后原先的数据库取数脚本使用

mysql -uname -ppassword 的方式登录数据库,但是现在报错‘Using a password on the command line interface can be insecure’,原因是数据库升级后认为在脚本中出现数据库密码是不安全的,因此阻止这样的方式登录。

改成mysql -uname -p 这个样子不报错了,但是执行到这一步之后需要在终端输入密码,如果是定时自动脚本不能这样使用。因为是生产环境不能配置配置文件并重启服务器,所以搜了一下最简单的解决办法就是在本用户的.profile文件中添加一条export MYSQL_PWD=XXXXX并source .profile,这样在脚本中不需要再使用-p字段,直接

mysql -uname 更后续sql及命令就可以使用,这是目前最简单的解决方法

Using a password on the command line interface can be insecure,mysql报错解决办法相关推荐

  1. mysql5.0 Using a password on the command line interface can be insecure.最简单的解决办法

    今天在用MySQL导出数据库的时候,我用mysqldump往出导,结果出现了下面的警告消息. mysqldump -h localhost -u root -p密码 visualization roa ...

  2. 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 ...

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

  5. Using a password on the command line interface can be insecure.

    使用mysqldump遇到报错 mysqldump: [Warning] Using a password on the command line interface can be insecure. ...

  6. 登录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 ...

  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: [Warning] Using a password on the command line interface can be insecure.解决方法

    1.在使用mysql命令的时候,出现问题: https://www.cndba.cn/hbhe0316/article/22635 https://www.cndba.cn/hbhe0316/arti ...

  9. [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 ...

  10. mysql: [Warning] Using a password on the command line interface can be insecure.(using password:YES)

    前段时间不知道什么原因在Linux终端中出现无法启动Mysql的情况,在Linux终端中输入 mysql -uroot -p密码 的时候出现了下面这个错误: mysql: [Warning] Usin ...

最新文章

  1. 2014-02-26_javascript_event
  2. HttpClient的连接池||HttpClient的请求参数
  3. jzoj3794,P1383-高级打字机【欧拉序,离线O(n)】
  4. android获取app用户数据,专项研究:Android收集用户数据是iPhone的20倍!
  5. 新网站SEO要做的事情有哪些
  6. 基于系统的流量控制(Qos)
  7. [原创]java WEB学习笔记35:java WEB 中关于绝对路径 和相对路径问题
  8. 数据库中查询的各种连接(左连接,右连接,全连接,内连接,交叉连接,自连接)...
  9. 利用计算机制作图表,利用Excel进行数据分组和制作统计图表.doc
  10. vue示例todos
  11. POI 导出Excel,部分单元格的锁定和背景至灰
  12. matlab面板数据怎么求增长率的公式,增长率怎么计算公式(7个步骤详解)
  13. Excel 用 vba 批量插入/提取批注
  14. NFC bcm2079x驱动学习
  15. 《Python机器学习及实践:从零开始通往Kaggle竞赛之路》第4章 实战篇 学习笔记(三)4.3IMDB影评得分估计总结
  16. Unity3D Shader 新手教程(2/6) —— 积雪Shader
  17. 【一些有关GraN-DAG的知识点总结】
  18. Android 高德地图(带有定位和点击显示经度纬度)
  19. 【诗词】曹雪芹:红豆词
  20. 利用百度人脸识别API,实现人脸登陆JavaWeb

热门文章

  1. Java中常用的限流算法
  2. 引蜘蛛软件哪款有效果?多少钱怎么购买?
  3. 常用的好用的软件记录
  4. PhotoView使用
  5. 2 Docker镜像的制作和使用说明
  6. C++算法9:KMP应用求字符串最小周期
  7. Marmoset Toolbag 3烘焙使用参数详解
  8. 自制电吉他效果器 DIY PCB(六)后记
  9. 介绍几个PHP 自带的加密解密函数
  10. TikTok运营指南到此