aboutsummaryrefslogtreecommitdiff
path: root/databases/administrators/mysql/README.org
blob: 82ae540350723d5504815e6699441bc1351e1556 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
#+title: MySQL Admins

* =mysql_admins.sql=

#+begin_src sql
SELECT * FROM information_schema.user_privileges;
#+end_src

#+begin_src
MySQL [(none)]> SELECT * FROM information_schema.user_privileges;
+--------------------------------+---------------+---------------------------------+--------------+
| GRANTEE                        | TABLE_CATALOG | PRIVILEGE_TYPE                  | IS_GRANTABLE |
+--------------------------------+---------------+---------------------------------+--------------+
| 'mysql.infoschema'@'localhost' | def           | SELECT                          | NO           |
| 'mysql.infoschema'@'localhost' | def           | AUDIT_ABORT_EXEMPT              | NO           |
| 'mysql.infoschema'@'localhost' | def           | FIREWALL_EXEMPT                 | NO           |
| 'mysql.infoschema'@'localhost' | def           | SYSTEM_USER                     | NO           |
| 'mysql.session'@'localhost'    | def           | SHUTDOWN                        | NO           |
| 'mysql.session'@'localhost'    | def           | SUPER                           | NO           |
| 'mysql.session'@'localhost'    | def           | AUDIT_ABORT_EXEMPT              | NO           |
| 'mysql.session'@'localhost'    | def           | AUTHENTICATION_POLICY_ADMIN     | NO           |
| 'mysql.session'@'localhost'    | def           | BACKUP_ADMIN                    | NO           |
| 'mysql.session'@'localhost'    | def           | CLONE_ADMIN                     | NO           |
| 'mysql.session'@'localhost'    | def           | CONNECTION_ADMIN                | NO           |
| 'mysql.session'@'localhost'    | def           | FIREWALL_EXEMPT                 | NO           |
| 'mysql.session'@'localhost'    | def           | PERSIST_RO_VARIABLES_ADMIN      | NO           |
| 'mysql.session'@'localhost'    | def           | SESSION_VARIABLES_ADMIN         | NO           |
| 'mysql.session'@'localhost'    | def           | SYSTEM_USER                     | NO           |
| 'mysql.session'@'localhost'    | def           | SYSTEM_VARIABLES_ADMIN          | NO           |
| 'mysql.sys'@'localhost'        | def           | USAGE                           | NO           |
| 'mysql.sys'@'localhost'        | def           | AUDIT_ABORT_EXEMPT              | NO           |
| 'mysql.sys'@'localhost'        | def           | FIREWALL_EXEMPT                 | NO           |
| 'mysql.sys'@'localhost'        | def           | SYSTEM_USER                     | NO           |
| 'root'@'localhost'             | def           | SELECT                          | YES          |
| 'root'@'localhost'             | def           | INSERT                          | YES          |
| 'root'@'localhost'             | def           | UPDATE                          | YES          |
| 'root'@'localhost'             | def           | DELETE                          | YES          |
| 'root'@'localhost'             | def           | CREATE                          | YES          |
| 'root'@'localhost'             | def           | DROP                            | YES          |
| 'root'@'localhost'             | def           | RELOAD                          | YES          |
| 'root'@'localhost'             | def           | SHUTDOWN                        | YES          |
| 'root'@'localhost'             | def           | PROCESS                         | YES          |
| 'root'@'localhost'             | def           | FILE                            | YES          |
| 'root'@'localhost'             | def           | REFERENCES                      | YES          |
| 'root'@'localhost'             | def           | INDEX                           | YES          |
| 'root'@'localhost'             | def           | ALTER                           | YES          |
| 'root'@'localhost'             | def           | SHOW DATABASES                  | YES          |
| 'root'@'localhost'             | def           | SUPER                           | YES          |
| 'root'@'localhost'             | def           | CREATE TEMPORARY TABLES         | YES          |
| 'root'@'localhost'             | def           | LOCK TABLES                     | YES          |
| 'root'@'localhost'             | def           | EXECUTE                         | YES          |
| 'root'@'localhost'             | def           | REPLICATION SLAVE               | YES          |
| 'root'@'localhost'             | def           | REPLICATION CLIENT              | YES          |
| 'root'@'localhost'             | def           | CREATE VIEW                     | YES          |
| 'root'@'localhost'             | def           | SHOW VIEW                       | YES          |
| 'root'@'localhost'             | def           | CREATE ROUTINE                  | YES          |
| 'root'@'localhost'             | def           | ALTER ROUTINE                   | YES          |
| 'root'@'localhost'             | def           | CREATE USER                     | YES          |
| 'root'@'localhost'             | def           | EVENT                           | YES          |
| 'root'@'localhost'             | def           | TRIGGER                         | YES          |
| 'root'@'localhost'             | def           | CREATE TABLESPACE               | YES          |
| 'root'@'localhost'             | def           | CREATE ROLE                     | YES          |
| 'root'@'localhost'             | def           | DROP ROLE                       | YES          |
| 'root'@'localhost'             | def           | ALLOW_NONEXISTENT_DEFINER       | YES          |
| 'root'@'localhost'             | def           | APPLICATION_PASSWORD_ADMIN      | YES          |
| 'root'@'localhost'             | def           | AUDIT_ABORT_EXEMPT              | YES          |
| 'root'@'localhost'             | def           | AUDIT_ADMIN                     | YES          |
| 'root'@'localhost'             | def           | AUTHENTICATION_POLICY_ADMIN     | YES          |
| 'root'@'localhost'             | def           | BACKUP_ADMIN                    | YES          |
| 'root'@'localhost'             | def           | BINLOG_ADMIN                    | YES          |
| 'root'@'localhost'             | def           | BINLOG_ENCRYPTION_ADMIN         | YES          |
| 'root'@'localhost'             | def           | CLONE_ADMIN                     | YES          |
| 'root'@'localhost'             | def           | CONNECTION_ADMIN                | YES          |
| 'root'@'localhost'             | def           | CREATE_SPATIAL_REFERENCE_SYSTEM | YES          |
| 'root'@'localhost'             | def           | ENCRYPTION_KEY_ADMIN            | YES          |
| 'root'@'localhost'             | def           | FIREWALL_EXEMPT                 | YES          |
| 'root'@'localhost'             | def           | FLUSH_OPTIMIZER_COSTS           | YES          |
| 'root'@'localhost'             | def           | FLUSH_PRIVILEGES                | YES          |
| 'root'@'localhost'             | def           | FLUSH_STATUS                    | YES          |
| 'root'@'localhost'             | def           | FLUSH_TABLES                    | YES          |
| 'root'@'localhost'             | def           | FLUSH_USER_RESOURCES            | YES          |
| 'root'@'localhost'             | def           | GROUP_REPLICATION_ADMIN         | YES          |
| 'root'@'localhost'             | def           | GROUP_REPLICATION_STREAM        | YES          |
| 'root'@'localhost'             | def           | INNODB_REDO_LOG_ARCHIVE         | YES          |
| 'root'@'localhost'             | def           | INNODB_REDO_LOG_ENABLE          | YES          |
| 'root'@'localhost'             | def           | OPTIMIZE_LOCAL_TABLE            | YES          |
| 'root'@'localhost'             | def           | PASSWORDLESS_USER_ADMIN         | YES          |
| 'root'@'localhost'             | def           | PERSIST_RO_VARIABLES_ADMIN      | YES          |
| 'root'@'localhost'             | def           | REPLICATION_APPLIER             | YES          |
| 'root'@'localhost'             | def           | REPLICATION_SLAVE_ADMIN         | YES          |
| 'root'@'localhost'             | def           | RESOURCE_GROUP_ADMIN            | YES          |
| 'root'@'localhost'             | def           | RESOURCE_GROUP_USER             | YES          |
| 'root'@'localhost'             | def           | ROLE_ADMIN                      | YES          |
| 'root'@'localhost'             | def           | SENSITIVE_VARIABLES_OBSERVER    | YES          |
| 'root'@'localhost'             | def           | SERVICE_CONNECTION_ADMIN        | YES          |
| 'root'@'localhost'             | def           | SESSION_VARIABLES_ADMIN         | YES          |
| 'root'@'localhost'             | def           | SET_ANY_DEFINER                 | YES          |
| 'root'@'localhost'             | def           | SHOW_ROUTINE                    | YES          |
| 'root'@'localhost'             | def           | SYSTEM_USER                     | YES          |
| 'root'@'localhost'             | def           | SYSTEM_VARIABLES_ADMIN          | YES          |
| 'root'@'localhost'             | def           | TABLE_ENCRYPTION_ADMIN          | YES          |
| 'root'@'localhost'             | def           | TELEMETRY_LOG_ADMIN             | YES          |
| 'root'@'localhost'             | def           | TRANSACTION_GTID_TAG            | YES          |
| 'root'@'localhost'             | def           | XA_RECOVER_ADMIN                | YES          |
| 'cmc'@'%'                      | def           | USAGE                           | NO           |
+--------------------------------+---------------+---------------------------------+--------------+
92 rows in set (0.001 sec)
#+end_src