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

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.

主站蜘蛛池模板: 泰顺县| 定南县| 新竹市| 古蔺县| 太谷县| 汶上县| 鲁山县| 九龙县| 枣庄市| 凌源市| 秦安县| 乐昌市| 宁化县| 盖州市| 赞皇县| 西平县| 城口县| 荃湾区| 三河市| 社旗县| 鄢陵县| 巩留县| 香港| 武功县| 措美县| 大同市| 叶城县| 阿巴嘎旗| 枝江市| 泸州市| 上杭县| 荣昌县| 梁河县| 云和县| 沂水县| 宜兰市| 隆昌县| 肥城市| 永吉县| 福建省| 隆回县|