Skip to content
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

set password='xx' fails privilege check #7522

Closed
morgo opened this issue Aug 29, 2018 · 0 comments · Fixed by #8426
Closed

set password='xx' fails privilege check #7522

morgo opened this issue Aug 29, 2018 · 0 comments · Fixed by #8426
Assignees
Labels
type/bug This issue is a bug. type/enhancement

Comments

@morgo
Copy link
Contributor

morgo commented Aug 29, 2018

Please answer these questions before submitting your issue. Thanks!

  1. What did you do?

I tried to change the password for a non-privileged user:

mysql> create user nobody;
^c
shell> mysql -unobody                                                                                                                                                                                 mysql> set password='acdc';
ERROR 1105 (HY000): privilege check fail
mysql> SET password=password('acdc');                                                                                                                                                                            ERROR 1105 (HY000): privilege check fail
  1. What did you expect to see?

It should be possible to set your own password.

  1. What did you see instead?

Error.

  1. What version of TiDB are you using (tidb-server -V or run select tidb_version(); on TiDB)?
MySQL [(none)]> SELECT tidb_version()\G                                                                                                                                                                                   *************************** 1. row ***************************
tidb_version(): Release Version: v2.1.0-rc.1-13-g1255973
Git Commit Hash: 1255973764f72575d71920b95fc0861d1677c6c5
Git Branch: master
UTC Build Time: 2018-08-28 07:35:57
GoVersion: go version go1.10.2 linux/amd64
Race Enabled: false
TiKV Min Version: 2.1.0-alpha.1-ff3dd160846b7d1aed9079c389fc188f7f5ea13e
Check Table Before Drop: false
1 row in set (0.00 sec)
@morgo morgo added the type/bug This issue is a bug. label Oct 19, 2018
@morgo morgo self-assigned this Nov 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug This issue is a bug. type/enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants