当前位置:网站首页>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学习13-----------测试用例设计1】
WebServer process explanation (registration module)
Data cleaning - ingest using es
Game mall table establishment
神经网络(ANN)
[In-depth and easy-to-follow FPGA learning 14----------Test case design 2]
pytorch bilinear interpolation
Jetpack Compose学习(8)——State及remeber
MySQL中substring与substr区别
uni-ui安装
How to ensure the consistency of database and cache data?
机器学习1一回归模型(二)
Gabor滤波器学习笔记
Optimization of aggregate mentioned at DATA AI Summit 2022
【VisDrone数据集】YOLOV4训练VisDrone数据集步骤与结果
transition过渡&&animation动画
HCIP Day 15 Notes
Dry goods | 4 tips for MySQL performance optimization
Manually set transaction commit in mysql
How to solve the error of joiplay simulator









