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)
createuseru1;
GRANT CREATE TEMPORARY TABLES,DELETE,EXECUTE,INSERT,SELECT,SHOW VIEW,TRIGGER,UPDATEON`test`.* TO `u1`; -- user existsGRANT CREATE TEMPORARY TABLES,DELETE,EXECUTE,INSERT,SELECT,SHOW VIEW,TRIGGER,UPDATEON`test`.* TO `u2`;
2. What did you expect to see? (Required)
mysql [localhost:8028] {root} (test) >GRANT CREATE TEMPORARY TABLES,DELETE,EXECUTE,INSERT,SELECT,SHOW VIEW,TRIGGER,UPDATEON`test`.* TO `u1`;
Query OK, 0 rows affected (0.00 sec)
mysql [localhost:8028] {root} (test) >GRANT CREATE TEMPORARY TABLES,DELETE,EXECUTE,INSERT,SELECT,SHOW VIEW,TRIGGER,UPDATEON`test`.* TO `u2`;
ERROR 1410 (42000): You are not allowed to create a user with GRANT
3. What did you see instead (Required)
tidb> create user u1;
Query OK, 0 rows affected (0.01 sec)
tidb>GRANT CREATE TEMPORARY TABLES,DELETE,EXECUTE,INSERT,SELECT,SHOW VIEW,TRIGGER,UPDATEON`test`.* TO `u1`; -- user exists
ERROR 1221 (HY000): Incorrect usage of DB GRANTand NON-DB PRIVILEGES
tidb>GRANT CREATE TEMPORARY TABLES,DELETE,EXECUTE,INSERT,SELECT,SHOW VIEW,TRIGGER,UPDATEON`test`.* TO `u2`;
ERROR 1105 (HY000): runtime error: invalid memory address or nil pointer dereference
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
3. What did you see instead (Required)
4. What is your TiDB version? (Required)
The text was updated successfully, but these errors were encountered: