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>
不能备份不知道怎么回事 请大牛帮忙 让他不出现警告执行
...全文
2023打赏收藏
免安装版mysql5.6.24备份语句dump-uroot-proot firepower
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> 不能备份不知道怎么回事 请大牛帮忙 让他不出现警告执行
楼主你好
真是太巧了,类似的问题我也遇到过
这个错误说的是在命令行使用密码是不安全的,这是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命令就可以了