Appearance
使用root
账号登录将拥有所有权限
权限分级
权限等级分为三个层级:
- 全局特权级
- database 级
- table 级
权限选项:
create
:
- 在全局特权级中选中
create
代表可以创建 database 和在所有 database 下创建 table 等数据结构; - 在 database 级中选中
create
代表可以在该 database 下创建 table 等数据结构;
insert
:
- 在全局特权级中选中
insert
代表可以对所有 database tables 执行插入数据操作; - 在 database 级中选中
insert
代表可以对该 database 的 tables 执行插入数据操作; - 在 table 级中选中
insert
代表仅可对该 table 执行插入数据操作;
update
- 在全局特权级中选中
update
代表可以对所有 database tables 执行更新数据操作; - 在 database 级中选中
update
代表可以对该 database 的 tables 执行更新数据操作; - 在 table 级中选中
update
代表仅可对该 table 执行更新数据操作;
select
- 在全局特权级中选中
select
代表可以对所有 database tables 执行数据查询操作和查看表结构操作; - 在 database 级中选中
select
代表可以对该 database 的 tables 执行数据查询操作和查看表结构操作; - 在 table 级中选中
select
代表仅可对该 table 执行数据查询操作和查看表结构操作;
delete
- 在全局特权级中选中
delete
代表可以对所有 database tables 执行删除数据操作; - 在 database 级中选中
delete
代表可以对该 database 的 tables 执行删除数据操作; - 在 table 级中选中
delete
代表仅可对该 table 执行删除数据操作;
alter
- 在全局特权级中选中
alter
代表可以对所有 database tables 执行修改表结构操作; - 在 database 级中选中
alter
代表可以对该 database 的 tables 执行修改表结构操作; - 在 table 级中选中
alter
代表仅可对该 table 执行修改表结构操作;
drop
- 在全局特权级中选中
drop
代表可以对所有 database tables 执行删除表结构操作; - 在 database 级中选中
drop
代表可以对该 database 的 tables 执行删除表结构操作; - 在 table 级中选中
drop
代表仅可对该 table 执行删除表结构操作;
show
在全局特权级中选中
show
代表可以在 LCM 中获取所有 database tables 的表结构;在 database 级选中
show
代表可以在该 database 下获取所有 tables 的表结构;可以通过 api 的 execSql 接口执行
SQL 语句 需求权限 show create table
全局/database 级 show
show tables
全局/database 级 show
show databases
全局 show
权限show connections
全局 show
权限show status where connid = <connid>;
全局 show
权限show locker;
全局 show
权限show columns from <table_name> [from <db_name>]
全局 show
权限
kill
- 在全局特权级中选中
kill
代表可以执行以下 SQL 语句: kill connection <id>;
kill query <id>;
kill process <id>;
系统权限
系统总览
- 仅全局特权级出现,登录用户可见系统总览页面;
服务器监控
- 仅全局特权级出现,登录用户可见服务器监控页面;
SQL控制台
- 仅全局特权级出现,登录用户可见 SQL 控制台页面;
结构管理
- 仅全局特权级出现,登录用户可见结构管理页面;
用户管理
- 仅全局特权级出现,登录用户可见用户管理页面;
角色管理
- 仅全局特权级出现,登录用户可见角色管理页面;