我已经升级到 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”时,我**总是**得到“ERROR 1045 (28000): Access denied for user 'user'@'localhost' (using password: YES) "
如果我像这样在末尾添加 "-p"
"mysql_config_editor --login-path=local -p"
我会提示输入密码,然后它连接成功...呵呵!?
最佳答案
当 mysql_config_editor 提示您时,在密码周围使用双引号。然后特殊字符(例如#)将在登录时被识别为密码的一部分。
关于mysql_config_editor --login-path=local 不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19372095/