Warning: Using a password on the command line interface can be insecure
来源:互联网 发布:网龙网络2017校园招聘 编辑:程序博客网 时间:2024/05/22 05:08
今天用shell连接数据库时出现"Warning: Using a password on the command line interface can be insecure."的错误提示,这个问题应该是在MySQL5.6+版本的时候就有出现,可能是为了确保数据库的安全性采用的保护机制。
我查了一下网上是这么解决的
第一种方法、修改数据库配置文件
1、我们需要修改数据库配置文件,这个要看我们数据库的配置的,有些是在/etc/my.cnf,有些是/etc/my.conf
我们需要在[client]部分添加脚本:
host=localhost
user=数据库用户
password='数据库密码'
这里参数要修改成我们自己的。
我是这么解决的mysql -h$HOSTNAME -u$USER -p$PWD $DATABASE << EOF2>/dev/null
INSERT INTO $TABLE_LIST(id,name,age) VALUES($id,$name,$age);
EOF
阅读全文
0 0
- Warning: Using a password on the command line interface can be insecure .ERROR 1045 (28000): Access
- cmd命令行下 Warning: Using a password on the command line interface can be insecure.
- 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.
- Error: mysql error: mysql: [Warning] Using a password on the command line interface can be insecure
- zabbix Warning: Using a password on the command line interface can be insecure
- zabbix监控mysql之Warning: Using a password on the command line interface can be insecure.
- Warning: Using a password on the command line interface can be insecure
- mysql 备份报错mysqldump: [Warning] Using a password on the command line interface can be insecure.
- MySQL5.6 Using a password on the command line interface can be insecure解决方法;
- MySQL 解决数据导出问题:Using a password on the command line interface can be insecure.
- mysql5.0 Using a password on the command line interface can be insecure.最简单的解决办法
- Mysql Warning :Using a password on the command line...
- 解决MySQL5.6出现"Using a password on the command line interface..."
- MySQL5.6出现”Using a password on the command line interface…”解决办法
- MySQL5.6 Using a password on the command line inte
- This warning can be disabled by using the command line flag -Dcom.android.build.gradle.overridePath
- This warning can be disabled by using the command line flag -Dcom.android.build.gradle.overridePath
- 基于centos 7 nginx服务的搭建
- 什么是跨域?常见的跨域的方式都有哪几种
- 400+汽车经销商怎么在一天完成算奖?
- 给定一个由非负整数和整数m组成的数组,可以将该数组分成m个非空的连续子数组。 写一个算法来最小化这些m个子阵列之间的最大和。
- logstash 中input插件读取的数据没有日期,现在想在filter插件的csv插件中插入以时间字段
- Warning: Using a password on the command line interface can be insecure
- Java Timer
- Java Web+GeoTools工具+自定义几何对象构造器+简单应用
- 【Python】不用numpy用纯python求极差、平均数、中位数、众数与方差,python的打印到控制台
- SPFA算法
- https 流程
- MOB第三方分享
- 基于springboot+bootstrap+mysql+redis搭建一套完整的权限架构【四】【编写基础开发工具】
- 车辆管理系统