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

Inconsistent error with MySQL for GRANT CREATE USER ON <specific db>.* #24439

Closed
mjonss opened this issue May 6, 2021 · 2 comments · Fixed by #24485
Closed

Inconsistent error with MySQL for GRANT CREATE USER ON <specific db>.* #24439

mjonss opened this issue May 6, 2021 · 2 comments · Fixed by #24485
Assignees
Labels
good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. severity/moderate sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug. type/compatibility

Comments

@mjonss
Copy link
Contributor

mjonss commented May 6, 2021

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

create user testuser@localhost;
grant create user on test.* to testuser@localhost;

2. What did you expect to see? (Required)

mysql> create user testuser@localhost;
Query OK, 0 rows affected (0.04 sec)

mysql> grant create user on test.* to testuser@localhost;
ERROR 1221 (HY000): Incorrect usage of DB GRANT and GLOBAL PRIVILEGES

3. What did you see instead (Required)

tidb> create user testuser@localhost;
Query OK, 0 rows affected (0.01 sec)

tidb> grant create user on test.* to testuser@localhost;
ERROR 1054 (42S22): Unknown column 'Create_user_priv' in 'field list'

4. What is your TiDB version? (Required)

tidb_version(): Release Version: v4.0.0-beta.2-2806-ga6ec081b8
Edition: Community
Git Commit Hash: a6ec081
Git Branch: HEAD
UTC Build Time: 2021-05-06 14:56:18
GoVersion: go1.13.8
Race Enabled: false
TiKV Min Version: v3.0.0-60965b006877ca7234adaced7890d7b029ed1306
Check Table Before Drop: false

@mjonss mjonss added the type/bug The issue is confirmed as a bug. label May 6, 2021
@morgo morgo added good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. type/compatibility labels May 6, 2021
@bb7133 bb7133 added the sig/sql-infra SIG: SQL Infra label May 7, 2021
@sylzd
Copy link
Contributor

sylzd commented May 7, 2021

/assign

@ti-srebot
Copy link
Contributor

Please edit this comment or add a new comment to complete the following information

Not a bug

  1. Remove the 'type/bug' label
  2. Add notes to indicate why it is not a bug

Duplicate bug

  1. Add the 'type/duplicate' label
  2. Add the link to the original bug

Bug

Note: Make Sure that 'component', and 'severity' labels are added
Example for how to fill out the template: #20100

1. Root Cause Analysis (RCA) (optional)

2. Symptom (optional)

3. All Trigger Conditions (optional)

4. Workaround (optional)

5. Affected versions

6. Fixed versions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. severity/moderate sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug. type/compatibility
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants