通过Powershell在mysql_config_editor中设置信用,没有提示输入密码

时间:2016-08-25 19:58:02

标签: mysql powershell mysql-5.6

我在Powershell中遇到了mysql的问题。为了绕过讨厌的“警告:使用密码......等等”,我试图通过Powershell脚本设置我的信用。

所以我有以下(抽象):

$user=user
$password=secret

$setcreds= ."C:\Program Files\MySQL\MySQL Server 5.6\bin\mysql_config_editor.exe" set --login-path=local --host=localhost --user=$user --password;

问题是Powershell没有返回提示我输入密码。该命令只是挂起,直到我按Ctrl + C返回到新行。

任何帮助我们都会非常感激。

谢谢。

0 个答案:

没有答案