-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for SET PASSWORD FOR user = 'PASSWORD' #2158
Conversation
Thanks @n1tr0g -- have you signed the CLA? Also, does the tests suite for you? Please be sure to run it before opening a PR. |
This is a good idea, and we need it. I'm not sure this is quite the syntax we want however. We may want |
@n1tr0g that's awesome. I agree with @otoolep, |
Sure I can change that to alter user, however I followed the MySQL syntax when doing that ... https://dev.mysql.com/doc/refman/5.0/en/set-password.html In the SQL world you use alter user to modify user preferences, not the password itself. For example you would use ALTER USER test1 admin false (https://dev.mysql.com/doc/refman/5.6/en/alter-user.html), but you can't change the password with that. Anyway if you still would like to go with ALTER USER what would be the correct syntax ? ALTER USER user1 PASSWORD=something ? About the CI failing could you guys have a look ? I am not the first one getting this error. Looks like something is missing in the repo, so the tests fail. Last but not least where would be the best place to start a conversation about some changes I would like to implement/suggest for the administration commands ? I would like to manage users/databases via my puppet module (http://github.com/n1tr0g/golja-influxdb - https://forge.puppetlabs.com/golja/influxdb), but I miss some functionality to do it properly. In general I think if we improve the admin commands, other configuration management tools like chef, ansible, salt could benefit. p.s. - yes I signed the CLA |
@dgnorton -- would you mind offering suggestions for the As for the CI failure, you've somehow changed the output of
Please run As for general discussions about changes, the mailing list is a good place to start. |
@otoolep tnx ... Hmm I did modify the output of 'SHOW USERS' when testing, but looks like I forgot to undo it before committing the PR. I will fix it now. |
Added support for the set password for user, so we can update user password via the new server administration commands
@benbjohnson @pauldix what do you guys think about |
I'm cool with using |
I like |
Any final decision on that ? |
LGTM, thanks @n1tr0g! |
Add support for SET PASSWORD FOR user = 'PASSWORD'
Document/Use secret service in API
Added support for the set password for user, so we can update user password via the new server administration commands.
Example:
curl -s -G http://localhost:8086//query?db=&q=set+password+for+dejan+%3D+%golja%27