官术网_书友最值得收藏!

Roles

In MySQL 8, the privileges module has been improved by introducing roles, which means a collection of permissions. Now we can create roles with a number of privileges and assign to multiple users.

The problem with the previous version was that we were not able to define generic permissions for a group of users and each user has individual privileges. Suppose if there are 1,000 users already existing that have common privileges, and you want to remove the write permissions for all of these 1,000 users, what would you have done in the previous version? You would take the lengthy approach of updating each and every user, right? Arrgh... that's a time-consuming task.

Now with MySQL 8, it is easy to update any change in privileges. Roles will define all the required privileges and this role will be assigned to those 1,000 users. We just need to make any privilege changes in the role and all users will automatically inherit the respective privileges.

Roles can be created, deleted, grant or revoked permission, granted or revoked from the user account, and can specify the default role within the current session.

主站蜘蛛池模板: 郸城县| 蒙阴县| 嘉善县| 阿克苏市| 肃北| 郯城县| 德令哈市| 祥云县| 临澧县| 云霄县| 宁陵县| 苏州市| 黄龙县| 阳信县| 霍林郭勒市| 萨迦县| 兴国县| 克拉玛依市| 西峡县| 梓潼县| 喀喇沁旗| 布尔津县| 曲阜市| 克山县| 新平| 凉城县| 北碚区| 奉贤区| 珠海市| 揭东县| 南部县| 五峰| 荃湾区| 涿州市| 曲沃县| 开鲁县| 依兰县| 兴隆县| 离岛区| 贵德县| 永登县|