免安装版mysql5.6.24备份语句dump-uroot-proot firepower

bettyzhang1996 2015-12-17 08:20:34

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>


不能备份不知道怎么回事 请大牛帮忙 让他不出现警告执行
...全文
202 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
bettyzhang1996 2016-02-23
  • 打赏
  • 举报
回复
谢谢大家的回复 我的问题解决了 有时间就分享出来
文修 2015-12-19
  • 打赏
  • 举报
回复
楼主你好 真是太巧了,类似的问题我也遇到过 这个错误说的是在命令行使用密码是不安全的,这是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命令就可以了
上海阿丽 2015-12-18
  • 打赏
  • 举报
回复
1、mysqldump 2、加上库名、或表,要是所有库加-A 3、firpower.txt前加重定向:> 使用mysqldump --help查看所有选项

56,678

社区成员

发帖
与我相关
我的任务
社区描述
MySQL相关内容讨论专区
社区管理员
  • MySQL
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧