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

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.

主站蜘蛛池模板: 樟树市| 江津市| 且末县| 德庆县| 民勤县| 工布江达县| 长治市| 怀来县| 德江县| 醴陵市| 灵璧县| 从化市| 宁津县| 林西县| 清河县| 武鸣县| 富蕴县| 成安县| 吴川市| 壶关县| 衡阳县| 治多县| 东安县| 苗栗市| 洪雅县| 分宜县| 当雄县| 河北区| 美姑县| 梨树县| 新田县| 买车| 拜泉县| 延边| 河曲县| 巴彦淖尔市| 若尔盖县| 临洮县| 兴城市| 桐城市| 池州市|