今天在用MySQL导出数据库的时候,我用mysqldump往出导,结果出现了下面的警告消息。

mysqldump -h localhost -u root -p密码 visualization roadcd>roadcd.sql

我在网上查了半天,才知道MySQL认为在执行命令后语句里面带有密码的话这样是不安全的。我看大家都说修改my.cnf文件,但我的MySQL数据库是免安装的,怎么也找不到my.cnf。我就发现了一个超简单的方法,那就是在命令里面不输入密码。如下:

mysqldump -h localhost -u root -p visualization roadcd>roadcd.sql

然后它会提示让你输入密码,当你输入密码,敲一下回车,数据库就成功导出来了。

导出的数据库一般就在C:\Users\[用户名]目录下。

原文链接: http://blog.csdn.net/wzgl__wh/article/details/52588918

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

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

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

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

  4. 去掉Warning: Using a password on the command line interface can be insecure.

    MySQL5.6之后的版本在通过客户端连接或者备份时时都会有出现如下的一个警告: Warning: Using a password on the command line interface can ...

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

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

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

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

  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. 使用js冒泡实现点击空白处关闭弹窗
  2. 用Java2D画出树的结构图
  3. 【Android 应用开发】Android 返回堆栈管理 ( 默认启动模式 | 栈顶复用启动模式 | 栈内复用启动模式 | 单实例启动模式 | CLEAR_TOP 标识 )
  4. java 用来查找输出的函数_Solr复杂查询一:函数查询
  5. C++ static与const用法详解
  6. win7系统5分钟自动注销的解决方法
  7. 判断用户Input输入的事件来进行登陆
  8. vue-cli配置移动端自适应
  9. Python Flask Web 第十一课 —— 使用 Flask-SQLAlchemy 管理数据库
  10. 直接插入排序和冒泡排序有什么区别 直接插入排序和冒泡排序有哪些不同
  11. js 实现pdf在线阅读
  12. VBA实战技巧精粹018:如何汇总数据
  13. 淘宝客商家如何加入内容商品库?
  14. nanomsg 高性能通信库_NanoMsg框架|NanoMsg的简介
  15. WebApp实时开源框架Clouda入门使用与记录
  16. [转] ubuntu上安装 ibus Google拼音输入法
  17. npm -i 与npm install -s与-d的区别
  18. NUST 2009-8
  19. vue php聊天室,实时聊天室:基于Laravel+Pusher+Vue通过事件广播实现
  20. nodejs01——安装及使用、服务端及客户端、commonjs规范、fs模块的使用(文件操作及目录操作)、stream、buffer、WebServer、端口、动态资源及静态资源、头信息、请求方式

热门文章

  1. SRIO学习(六)——Direct I/O 操作(一)
  2. XDC约束技巧之时钟篇
  3. Xilinx Select IO的介绍
  4. php采集列表xml代码,php读取xml列表程序
  5. 6.Java集成开发环境
  6. 以太网迎新增长 专家眼中的车载以太网及AVB技术
  7. ActiveX(五)更好的“ActiveX”?
  8. Oracle 好书 02 ( 安装oracle 10g软件及创建数据库 )
  9. Struts2工作原理详解
  10. Spark的RDD分区器