当前位置:网站首页>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体系化之JOIN运算实例分析
- In MySQL, the stored procedure cannot realize the problem of migrating and copying the data in the table
- Word文件损坏如何修复
- transition过渡&&animation动画
- XSS相关知识
- 【深入浅出玩转FPGA学习13-----------测试用例设计1】
- The first level must project independently
- uniapp开发微信小程序-软考刷题小程序
- Manually set transaction commit in mysql
- How to install joiplay emulator rtp
猜你喜欢
随机推荐
Mysql体系化之JOIN运算实例分析
会员生日提前了一天
The first level must project independently
从笔试包装类型的11个常见判断是否相等的例子理解:包装类型、自动装箱与拆箱的原理、装箱拆箱的发生时机、包装类型的常量池技术
Bugku sql注入
How to solve the error of joiplay simulator
what is jira
实验8(vlan实验)
Shell脚本 if语句
A Brief Talk About MPI
firewalld
怎么开通代付通道接口?
After writing business code for many years, I found these 11 doorways, which only experts know
An easy-to-use interface testing tools - the Postman
HCIP第十六天笔记
ES6中 async 函数、await表达式 的基本用法
Steven Giesel recently published a 5-part series documenting his first experience building an application with the Uno Platform.
Soft Exam Summary
【深入浅出玩转FPGA学习14----------测试用例设计2】
software development design process








