授权表tables_priv | 授权表columns_priv |
作用域列 | |
Host | Host |
Db | Db |
User | User |
Table_name | Table_name |
Column_name | |
权限列 | |
Table_priv | Column_priv |
其他列 | |
Timestamp | Timestamp |
Grantor |
字段名 | 类型 |
Host | CHAR(60) |
User | CHAR(16) |
Password | CHAR(16) |
Db | CHAR(64)(tables_priv和columns_priv表为CHAR(60)) |
列 | 大小写敏感性 |
Host | No |
User | Yes |
Password | Yes |
Db | Yes |
Table_name | Yes |
Column_name | No |
表名 | 字段名 | 可能的集合成员 |
tables_priv | Table_priv | 'Select', 'Insert', 'Update', 'Delete','Create', 'Drop', 'Grant', 'References', 'Index', 'Alter' |
tables_priv | Column_priv | 'Select', 'Insert', 'Update', 'References' |
columns_priv | Column_priv | 'Select', 'Insert', 'Update', 'References' |
Host值 | User值 | 被条目匹配的连接 |
'host.domain.cn' | 'Gwen' | Gwen,从host.domain.cn连接 |
'host.domain.cn' | '' | 任何用户,从host.domain.cn连接, |
'%' | 'Gwen' | Gwen,从任何主机连接 |
'%' | '' | 任何用户,从任何主机连接 |
'%.loc.gov' | 'Gwen' | Gwen,从在loc.gov域的任何主机连接 |
'x.y.%' | 'Gwen' | Gwen,从x.y.net、x.y.com,x.y.edu等联接。(这或许无用) |
'144.155.166.177' | 'Gwen' | Gwen,从有144.155.166.177 IP 地址的主机连接 |
'144.155.166.%' | 'Gwen' | Gwen,从144.155.166 C类子网的任何主机连接 |
global privileges OR (database privileges AND host privileges) OR table privileges OR column privileges |