-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
grant lock tables on t.* to ${role_name} ERROR #27290
Labels
Comments
jingshanglu
added
type/bug
The issue is confirmed as a bug.
severity/minor
sig/sql-infra
SIG: SQL Infra
labels
Aug 17, 2021
reproduce on 5.2.0. |
5.1.1 not report this error but not really grant this privilege. MySQL root@127.0.0.1:(none)> create database t;
-> drop role if exists r1;
-> create role r1;
-> grant lock tables on t.* TO 'r1'@'%';
->
Query OK, 0 rows affected
Time: 0.129s
Query OK, 0 rows affected
Time: 0.014s
Query OK, 0 rows affected
Time: 0.012s
Query OK, 0 rows affected
Time: 0.010s
MySQL root@127.0.0.1:(none)> show grants for 'r1'@'%';
+--------------------------------+
| Grants for r1@% |
+--------------------------------+
| GRANT USAGE ON *.* TO 'r1'@'%' |
+--------------------------------+
1 row in set
Time: 0.005s
MySQL root@127.0.0.1:(none)> flush privileges;
Query OK, 0 rows affected
Time: 0.007s
MySQL root@127.0.0.1:(none)> show grants for 'r1'@'%';
+--------------------------------+
| Grants for r1@% |
+--------------------------------+
| GRANT USAGE ON *.* TO 'r1'@'%' |
+--------------------------------+
1 row in set
Time: 0.007s
MySQL root@127.0.0.1:(none)>
|
Looks similar to #26703, maybe the same type of fix can be applied? |
This was referenced Aug 19, 2021
Please edit this comment or add a new comment to complete the following informationNot a bug
Duplicate bug
BugNote: Make Sure that 'component', and 'severity' labels are added 1. Root Cause Analysis (RCA) (optional)2. Symptom (optional)3. All Trigger Conditions (optional)4. Workaround (optional)5. Affected versions6. Fixed versions |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
grant successful
3. What did you see instead (Required)
4. What is your TiDB version? (Required)
master
commit id: caba86a
The text was updated successfully, but these errors were encountered: