Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

mysql_config_editor --login-path=local not working

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!?

like image 1000
user2880858 Avatar asked Oct 15 '13 01:10

user2880858


2 Answers

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.

like image 117
bglad Avatar answered Sep 25 '22 02:09

bglad


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.

like image 35
Roger Gustavsson Avatar answered Sep 24 '22 02:09

Roger Gustavsson



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!