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

*: add INFORMATION_SCHEMA.USER_PRIVILEGES table #2963

Merged
merged 4 commits into from
Mar 30, 2017

Conversation

tiancaiamao
Copy link
Contributor

So that it support this now:

mysql> select * from information_schema.user_privileges;
+---------+---------------+----------------+--------------+
| GRANTEE | TABLE_CATALOG | PRIVILEGE_TYPE | IS_GRANTABLE |
+---------+---------------+----------------+--------------+
| genius  | def           | Select         | NO           |
| root    | def           | Select         | YES          |
| root    | def           | Insert         | YES          |
| root    | def           | Update         | YES          |
| root    | def           | Delete         | YES          |
| root    | def           | Create         | YES          |
| root    | def           | Drop           | YES          |
| root    | def           | Alter          | YES          |
| root    | def           | Show Databases | YES          |
| root    | def           | Execute        | YES          |
| root    | def           | Index          | YES          |
| root    | def           | Create User    | YES          |
+---------+---------------+----------------+--------------+
12 rows in set (0.00 sec)

@shenli
Copy link
Member

shenli commented Mar 30, 2017

LGTM

@shenli
Copy link
Member

shenli commented Mar 30, 2017

@coocood PTAL

@tiancaiamao tiancaiamao force-pushed the tiancaiamao/user-privilege-table branch from 795bfa7 to 0f2de2f Compare March 30, 2017 07:45
@coocood
Copy link
Member

coocood commented Mar 30, 2017

LGTM

@tiancaiamao tiancaiamao merged commit 3c494b7 into master Mar 30, 2017
@tiancaiamao tiancaiamao deleted the tiancaiamao/user-privilege-table branch March 30, 2017 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants