扯扯MySQL 5.6.19 Administrative Roles and Global Privileges

Role:

1.DBA

2.MaintenanceAdmin

3.ProcessAdmin

4.UserAdmin

5.SecurityAdmin

6.MonitorAdmin

7.DBManager

8.ReplicationAdmin

9.BackupAdmin

10.Custom,这个其实不算系统role吧,自定义的,可以组合Global Privileges

Global Privileges:

1.Alter

2.Alter Routine

3.Create

4.Create Routine

5.Create Tablespace

6.Create Temporary Tables

7.Create User

8.Create View

9.Delete

10.Drop

11.Event

12.Execute

13.File

14.Grant Option

15.Index

16.Insert

17.Lock Tables

18.Process

19.References

20.Reload

21.Replication Client

22.Replication Slave

23.Select

24.Show Databases

25.Show View

26.Shutdown

27.Super

28.Trigger

29.Update

真是多吧,还有Role默认对应的Global Privileges

其实没必要记(自己感觉没必要记),关于Global Privileges还知道个Super,因为这几天一直搞这个;其他的Role,今天第一次知道MySQL里还有Role。

你安装了MySQL和Workbench后,可以在Workbench的Users and Privileges看到,Role和Global Privileges默认对应关系,下面直接上两张图

扯扯MySQL 5.6.19 Administrative Roles and Global Privileges

扯扯MySQL 5.6.19 Administrative Roles and Global Privileges

还有Roles之间的包含关系等等,我就刚刚截图时选中DBA Role才发现的 。

Roles and Global Privileges全在这了(我猜的),之所以前文列出来,就是为了装X。