当前位置:网站首页>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];边栏推荐
- How to adjust Chinese in joiplay simulator
- 46.
- align-content、justify-content、align-items三个属性的作用和效果
- Steven Giesel 最近发布了一个由5部分内容组成的系列,记录了他首次使用 Uno Platform 构建应用程序的经验。
- transition过渡&&animation动画
- 作业:iptables防止nmap扫描以及binlog
- .NET Cross-Platform Application Development Hands-on Tutorial | Build a Kanban-style Todo App with Uno Platform
- ctfshow 文件包含
- xss靶机训练【实现弹窗即成功】
- MySQL中substring与substr区别
猜你喜欢
随机推荐
DNS resolution process [visit website]
software development design process
限制字符绕过
45.【list链表的应用】
Linux 部署mysql 5.7全程跟踪 完整步骤 django部署
天空云变化案例
消息队列存储消息数据的MySQL表设计
会议OA项目待开会议、所有会议功能
【VisDrone数据集】YOLOV3训练VisDrone数据集步骤与结果
matplotlib图表多曲线多纵轴绘制工具方法
uniapp开发微信小程序-软考刷题小程序
uniapp develops WeChat applet - soft exam brushing applet
flutter 做底部的三个按键,有叠加,有填充
Steven Giesel recently published a 5-part series documenting his first experience building an application with the Uno Platform.
Shell编程条件语句 test命令 整数值,字符串比较 逻辑测试 文件测试
2D转换模块&&媒体查询
xss靶机训练【实现弹窗即成功】
h264和h265解码上的区别
WebServer process explanation (registration module)
封装、获取系统用户信息、角色及权限控制








