当前位置:网站首页>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];
边栏推荐
猜你喜欢
mysql 中手动设置事务提交
align-content、justify-content、align-items三个属性的作用和效果
jira是什么
47. 【Pointers and Arrays】
An easy-to-use interface testing tools - the Postman
Shell编程条件语句 test命令 整数值,字符串比较 逻辑测试 文件测试
Steven Giesel 最近发布了一个由5部分内容组成的系列,记录了他首次使用 Uno Platform 构建应用程序的经验。
Chevrolet Trailblazer, the first choice for safety and warmth for your family travel
【深入浅出玩转FPGA学习15----------时序分析基础】
xss的绕过
随机推荐
uniapp开发微信小程序-软考刷题小程序
VSCode高效开源神器有哪些
软件开发设计流程
SWM32系列教程6-Systick和PWM
An easy-to-use interface testing tools - the Postman
MySQL面试题
.NET Cross-Platform Application Development Hands-on Tutorial | Build a Kanban-style Todo App with Uno Platform
How to Repair Word File Corruption
Homework: iptables prevent nmap scan and binlog
Mysql体系化之JOIN运算实例分析
网络常用的状态码
pytorch双线性插值
ABC 261 F - Sorting Color Balls(逆序对)
uniapp折叠框二级循环
45.【list链表的应用】
Linux 部署mysql 5.7全程跟踪 完整步骤 django部署
How to import game archives in joiplay emulator
MySQL数据库约束,表的设计
Restricted character bypass
encrypted transmission process