mysql_config_editor --login-path = local不工作

use*_*858 9 mysql config editor

我已升级到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"我被提示输入密码,它连接成功...呵呵!?

小智 33

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


小智 4

mysql命令中的某个地方似乎有一个错误。如果密码中有“#”符号(已确认)或其他“奇怪”字符(未确认),则 --login-path 方法不起作用。使用另一个密码进行测试。