当前位置:网站首页>[MySQL learning notes 16] permission management

[MySQL learning notes 16] permission management

2022-06-21 17:26:00 yqs_ two hundred and eighty-one million eight hundred and seven

Common permissions

jurisdiction explain
ALL,ALL PRIVILEGES All permissions
SELECT Query authority
INSER Insert permissions
UPDATE Update the permissions
DELETE Delete permission
ALTER Modify table permissions
DROP Delete Library / surface / View permissions
CREATE Create a library / Table permissions

Query permissions owned by a user

show grants for ‘ user name ’@‘ Host name ’

Grant authority

grant Permission list on Database name . Table name to ‘ user name ’@‘ Host name ’

Revoke authority

revoke Permission list on Database name . Table name from ‘ user name ’@‘ Host name ’

Refresh the permissions

flush privileges

原网站

版权声明
本文为[yqs_ two hundred and eighty-one million eight hundred and seven]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/172/202206211409238507.html