当前位置:网站首页>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];边栏推荐
- .NET Cross-Platform Application Development Hands-on Tutorial | Build a Kanban-style Todo App with Uno Platform
- C# VSCode & Rider引用命名空间快捷键
- ES6中 async 函数、await表达式 的基本用法
- 作业:iptables防止nmap扫描以及binlog
- leetcode 406. Queue Reconstruction by Height 根据身高重建队列(中等)
- joiplay模拟器rtp如何安装
- firewalld
- 如何在WordPress网站上添加导航菜单
- 数据库的严格模式
- Homework: iptables prevent nmap scan and binlog
猜你喜欢
随机推荐
MPI简谈
HCIP第十六天笔记
leetcode 406. Queue Reconstruction by Height
对象集合去重的方法
xss靶机训练【实现弹窗即成功】
从编译的角度来学作用域!
2022 China Logistics Industry Conference and Entrepreneur Summit Forum will be held in Hangzhou!
45. [Application of list linked list]
HCIP第十五天笔记
天空云变化案例
【唐宇迪 深度学习-3D点云实战系列】学习笔记
leetcode 406. Queue Reconstruction by Height 根据身高重建队列(中等)
Ukraine's foreign ministry: wu was restored to complete the export of food security
joiplay模拟器不支持此游戏类型怎么解决
MPI简谈
Manually set transaction commit in mysql
Restricted character bypass
uni-ui安装
Installation considerations for pytorch
WebServer流程讲解(注册模块)









