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>
不能备份不知道怎么回事  请大牛帮忙 让他不出现警告执行

解决方案 »

  1.   

    1、mysqldump
    2、加上库名、或表,要是所有库加-A
    3、firpower.txt前加重定向:>
    使用mysqldump --help查看所有选项
      

  2.   

    楼主你好
           真是太巧了,类似的问题我也遇到过
      这个错误说的是在命令行使用密码是不安全的,这是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命令就可以了