mysql_config_editor --login-path = local不工作

时间:2013-10-15 01:54:04

标签: mysql editor config

我已升级到mysql 5.6.13,并认为我会尝试新的--login-path功能。

我使用"mysql_config_editor set --login-path=local --host=localhost --user=user --password"配置

在提示符下输入密码后,我发现所有内容都在"mysql_config_editor print --all"

当我做"mysql_config_editor --login-path=local" I **always** get "ERROR 1045 (28000): Access denied for user 'user'@'localhost' (using password: YES)"

如果我将"-p"添加到最后"mysql_config_editor --login-path=local -p",系统会提示我输入密码并成功连接...嗯!?

3 个答案:

答案 0 :(得分:31)

当mysql_config_editor提示您时,请在密码周围使用双引号。然后,登录时,特殊字符(例如#)将被识别为密码的一部分。

答案 1 :(得分:3)

mysql命令中似乎存在某个错误。如果密码中有'#' - 符号(已确认)或者某些其他“奇怪”字符(未经证实),则--login-path方法不起作用。用另一个密码测试。

答案 2 :(得分:0)

在密码上加上双引号。当出现#符号并且可能带有< >符号时,行为会有所不同。

例如"F$#d32e$@<>D"