You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
on mysql
mysql> create user test identified by '123456';
Query OK, 0 rows affected (0.07 sec)
then login with test
mysql> alter user test password expire never;
ERROR 1227 (42000): Access denied; you need (at least one of) the CREATE USER privilege(s) for this operation
on tidb
mysql> create user test identified by '123456';
Query OK, 0 rows affected (0.04 sec)
then login with test
mysql> alter user test password expire never;
Query OK, 0 rows affected (0.04 sec)
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
on mysql
then login with
test
on tidb
then login with
test
quote from mysql doc https://dev.mysql.com/doc/refman/8.4/en/alter-user.html
but in our impl, the current user can alway alter params related to itself
tidb/pkg/executor/simple.go
Lines 1758 to 1786 in 811be5a
2. What did you expect to see? (Required)
err
3. What did you see instead (Required)
ok
4. What is your TiDB version? (Required)
master
The text was updated successfully, but these errors were encountered: