当前位置:网站首页>DCL statement of MySQL Foundation
DCL statement of MySQL Foundation
2022-07-04 10:21:00 【Java full stack preacher】
DCL(Data Control Language) sentence : Data control statement .
purpose : Control database 、 surface 、 Field 、 User Access and security levels .
Common keywords :grant、revoke etc.
It is generally used to manage the permissions of databases and users , Learn from practical examples grant( Assign permissions ) and revoke( Take back authority )
Take a common example , This example will be useful in the future
Example : Assign permissions to a user for a database
The database server in a company may run databases of many projects at the same time . therefore , We should be able to Create different users according to different projects , Assign different permissions To manage and maintain the database .
create user 'usertest'@'%' indentified by '123456';
grant all privileges on mydb.* to 'usertest'@'%';
-- View the user's permissions
show grants for 'usertest'@'%';
user usertest Yes mydb The database has all permissions (ALL PRIVILEGES)
Revoke delete permission
revoke delete on mydb.* from 'usertest'@'%'Switch back to the root, Re execution revoke command

-- View the user's permissions
show grants for 'usertest'@'%';
In addition to deleting permissions , Other permissions are . You can also see here , A user has many operation permissions , And these permissions can be assigned independently .
Pay attention to the official account, learn more about the knowledge of the database and get the database free e-book. .

边栏推荐
- OSPF comprehensive experiment
- Exercise 9-3 plane vector addition (15 points)
- Two way process republication + routing policy
- Rhcsa - day 13
- 基于线性函数近似的安全强化学习 Safe RL with Linear Function Approximation 翻译 1
- Service developers publish services based on EDAs
- 什么是 DevSecOps?2022 年的定义、流程、框架和最佳实践
- Whether a person is reliable or not, closed loop is very important
- Application of safety monitoring in zhizhilu Denggan reservoir area
- Online troubleshooting
猜你喜欢

How can people not love the amazing design of XXL job

【FAQ】华为帐号服务报错 907135701的常见原因总结和解决方法

【OpenCV 例程200篇】218. 多行倾斜文字水印

基于线性函数近似的安全强化学习 Safe RL with Linear Function Approximation 翻译 2

Some summaries of the third anniversary of joining Ping An in China

Devop basic command

Hands on deep learning (III) -- Torch Operation (sorting out documents in detail)

Static comprehensive experiment ---hcip1

基于线性函数近似的安全强化学习 Safe RL with Linear Function Approximation 翻译 1

【Day1】 deep-learning-basics
随机推荐
Press the button wizard to learn how to fight monsters - identify the map, run the map, enter the gang and identify NPC
PHP code audit 3 - system reload vulnerability
Number of relationship models
Baidu R & D suffered Waterloo on three sides: I was stunned by the interviewer's set of combination punches on the spot
Online troubleshooting
System.currentTimeMillis() 和 System.nanoTime() 哪个更快?别用错了!
Differences among opencv versions
What are the advantages of automation?
Lavel document reading notes -how to use @auth and @guest directives in lavel
使用 C# 提取 PDF 文件中的所有文字(支持 .NET Core)
[200 opencv routines] 218 Multi line italic text watermark
What is devsecops? Definitions, processes, frameworks and best practices for 2022
Hands on deep learning (42) -- bi-directional recurrent neural network (BI RNN)
今日睡眠质量记录78分
Vs201 solution to failure to open source file HPP (or link library file)
Mmclassification annotation file generation
【Day1】 deep-learning-basics
Velodyne configuration command
Ruby time format conversion strftime MS matching format
OSPF summary