C:\mysql\mysql-5.6.24-win32\bin> mysql dump -uroot -pRoot firpower.txt
waring:using a password on the command line interface can be insecure
C:\mysql\mysql-5.6.24-win32\bin>
不能备份不知道怎么回事 请大牛帮忙 让他不出现警告执行
解决方案 »
- 利用C API在vs2008中如何向mysql数据库中插入海量不重复数据
- sql 显示数据库中的部分记录
- 如何明确建立索引
- 如何用C语言调用mysql语句将表中项输出到文本文件???
- ———通过phpMyAdmin-2.7.0-pl2连接mysql-5.0.18-win32出错,高手们请帮我看一下———
- p3 1.0 256 ddr 上的mysql 可以接收多少的并发?
- 连接mysql的问题
- 如何赋予对information_schema的所有表有写的权限
- 我想学习mysql,请问怎么安装?
- 问一下大神怎么把这两条查询语句合并
- show profile 的字段含义
- 一个内部错误发生在:“执行SQL语句“
2、加上库名、或表,要是所有库加-A
3、firpower.txt前加重定向:>
使用mysqldump --help查看所有选项
真是太巧了,类似的问题我也遇到过
这个错误说的是在命令行使用密码是不安全的,这是5.6版本的新特性MySQL官网对此作出了解释http://MySQL users should use the following guidelines to keep passwords secure.里面有一段话:
When you run a client program to connect to the MySQL server, it is inadvisable to specify your password in a way that exposes it to discovery by other users. The methods you can use to specify your password when you run client programs are listed here, along with an assessment of the risks of each method. In short, the safest methods are to have the client program prompt for the password or to specify the password in a properly protected option file.大概意思是在命令行下如果要使用密码可以在执行命令后的提示输入里输入密码,或者在指定的安全文件内指定密码。
Store your password in an option file. For example, on Unix, you can list your password in the [client] section of the .my.cnf file in your home directory:楼主可以打开my.cnf文件,在mysqldump下面增加user=root
password=root保存退出再执行dump命令就可以了