mysql_config_editor --login-path=local not working

大城市里の小女人 提交于 2019-12-12 07:49:27

问题


I have upgraded to mysql 5.6.13 and thought I would try the new --login-path feature.

I configure with "mysql_config_editor set --login-path=local --host=localhost --user=user --password"

After entering the password at the prompt I see that all is there with "mysql_config_editor print --all"

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

If I add "-p" onto the end like so "mysql_config_editor --login-path=local -p" I am prompted to enter the password and it connects successfully...huhhh!?


回答1:


Use double quotes around the password when mysql_config_editor prompts you. Then special characters (e.g. #) will be recognized as part of the password upon login.




回答2:


There seems to be a bug somewhere in the mysql commands. If you have a '#'-sign (confirmed) in the password or maybe some other "strange" characters (unconfirmed), the --login-path method doesn't work. Test with another password.




回答3:


Put double quotes on password. The behavior is different when there's # symbol and probably the < > sign.

e.g. "F$#d32e$@<>D"



来源:https://stackoverflow.com/questions/19372095/mysql-config-editor-login-path-local-not-working

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!