Using a password on the command line interface can be insecure,mysql报错解决办法
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报错解决办法相关推荐
- mysql5.0 Using a password on the command line interface can be insecure.最简单的解决办法
今天在用MySQL导出数据库的时候,我用mysqldump往出导,结果出现了下面的警告消息. mysqldump -h localhost -u root -p密码 visualization roa ...
- 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 ...
- MySQL 基准测试(mysqlslap)出现 Using a password on the command line interface can be insecure 警告
问题描述:在使用 mysqlslap 进行基准测试时,出现警告 mysqlslap: [Warning] Using a password on the command line interface ...
- 已解决: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. 解决 将密码改为后 ...
- 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. ...
- 登录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 ...
- 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." 解决方法 参考文 ...
- 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 ...
- [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 ...
- 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 ...
最新文章
- 2014-02-26_javascript_event
- HttpClient的连接池||HttpClient的请求参数
- jzoj3794,P1383-高级打字机【欧拉序,离线O(n)】
- android获取app用户数据,专项研究:Android收集用户数据是iPhone的20倍!
- 新网站SEO要做的事情有哪些
- 基于系统的流量控制(Qos)
- [原创]java WEB学习笔记35:java WEB 中关于绝对路径 和相对路径问题
- 数据库中查询的各种连接(左连接,右连接,全连接,内连接,交叉连接,自连接)...
- 利用计算机制作图表,利用Excel进行数据分组和制作统计图表.doc
- vue示例todos
- POI 导出Excel,部分单元格的锁定和背景至灰
- matlab面板数据怎么求增长率的公式,增长率怎么计算公式(7个步骤详解)
- Excel 用 vba 批量插入/提取批注
- NFC bcm2079x驱动学习
- 《Python机器学习及实践:从零开始通往Kaggle竞赛之路》第4章 实战篇 学习笔记(三)4.3IMDB影评得分估计总结
- Unity3D Shader 新手教程(2/6) —— 积雪Shader
- 【一些有关GraN-DAG的知识点总结】
- Android 高德地图(带有定位和点击显示经度纬度)
- 【诗词】曹雪芹:红豆词
- 利用百度人脸识别API,实现人脸登陆JavaWeb