当前位置:网站首页>MySQL grant statements
MySQL grant statements
2022-07-31 00:15:00 【Miracle_ze】
grant statement
- 1. Role: Authorization
- 2. Statement format
- The difference between 1.library.* and library.table
- 1.Library.* is to give users the corresponding permissions for all tables in this library, and the granted permissions can be used for all tables in the library
- 2. The library.* table has corresponding permissions for the tables specified in the user library, and the granted permissions cannot be used for non-specified tables in the library
- 2. View MySQL user permissions
- 3. Revoke privileges that have been granted to MySQL user privileges.
1. Role: Authorization
grant general data user, the right to query, insert, update, delete all table data in the database
grant database developer, the authority to create tables, indexes, views, stored procedures, functions, etc.
2. Statement format
grant all[permissions][privileges] on library.table [email protected][if it is local, write this]identifield by 'password';The difference between 1.library.* and library.table
1.Library.* is to give the user the corresponding permissions for all tables in this library, and the granted permissions can be used for all tables in the library


2. The library.* table has corresponding permissions for the tables specified in the user library, and the granted permissions cannot be used for non-specified tables in the library


2. View MySQL user permissions
1. View by own authority
show grants;Example:
2. View other MySQL user permissions
show grants for [email protected];Example:
3. Revoke privileges that have been granted to MySQL user privileges.
revoke has similar syntax to grant, just replace the keyword to with from:
revoke all【Permission】 on *.* from [email protected];边栏推荐
- 【深入浅出玩转FPGA学习14----------测试用例设计2】
- (五)fastai应用
- Necessary artifacts - AKShare quants
- Steven Giesel 最近发布了一个由5部分内容组成的系列,记录了他首次使用 Uno Platform 构建应用程序的经验。
- uni-ui安装
- .NET Cross-Platform Application Development Hands-on Tutorial | Build a Kanban-style Todo App with Uno Platform
- The first level must project independently
- mysql中关于存储过程无法实现迁移复制表中数据问题
- 数据库的严格模式
- Machine Learning 1-Regression Model (2)
猜你喜欢
随机推荐
pytorch双线性插值
作业:iptables防止nmap扫描以及binlog
How to solve the error of joiplay simulator
Learn Scope from a Compilation Perspective!
2D转换模块&&媒体查询
flutter 做底部的三个按键,有叠加,有填充
joiplay模拟器不支持此游戏类型怎么解决
@requestmapping注解的作用及用法
天空云变化案例
Android security optimization - APP reinforcement
mysql中关于存储过程无法实现迁移复制表中数据问题
动态修改el-tab-pane 的label(整理)
image里的mode属性
Shell script if statement
A Brief Talk About MPI
数据库的严格模式
软件开发设计流程
uniapp folding box secondary loop
ES6中 async 函数、await表达式 的基本用法
MySQL的grant语句






![DNS resolution process [visit website]](/img/58/ae9464dc714c4fcb958424ac134c99.png)


