当前位置:网站首页>MySQL introduction
MySQL introduction
2022-07-28 23:35:00 【I love coriander TVT】
Catalog
One 、MySQL brief introduction :
3、 ... and 、 Building database
One 、MySQL brief introduction :
1. What is? MySQL?
Mysql Is a relational database management system ( Database is divided into relational database and non relational database , Relational databases have SqlServer、MySQL as well as Oracle wait , Non-relational databases do MongoDB、Cassandra as well as Redis wait ), The Swedish MySQL AB Companies to develop , At present belongs to the Oracle Its products .MySQL characteristic : Use a complete management system for unified management , Easy to query
2、Why( Why use MySQL)
Because data is easy to lose in memory , To save forever , Then use MySQL To save , And because the data is in the file , Not easy to operate .
3、Where:( Where to use MySQl)
Where persistent data storage is needed .
4、 The term :
4.1DB:
database (database): Storing data “ Warehouse ”. It holds a series of organized data .
4.2DBMS:
Database management system (Database Management System). Database is through DBMS Create and manipulate containers
4.3SQL:
Structured query language (Structure Query Language): A language designed to communicate with a database
Two 、MySQL User management of
1、 Basic operation
1.1 Query all users
select * from USERRunning effect :
1.
1.2 A new user
create user jy1.3、 View the host address in the user , User name and password
-- Search the address of the user , User name and password
select host,user,authentication_string from user1.4、 Send new users jy The password of is set to 123456
-- Send new users jy The password of is set to 123456
ALTER user jy IDENTIFIED with mysql_native_password by '123456'
Running effect : The password is encrypted

2、 Set the permissions

First use the newly created user jy Establish a database connection , Then there will be one on the far left jy Little green whale

2.2 Set the permissions
grant ALL on Database name .* to [email protected]'%' to user jy give All tables in the database All permissions

2.3 Revoke authority : Revoke all permissions of a user to use all tables in a database
General format :REVOKE ALL on database_name.*FROM [email protected]'host'
-- Undo to user jy database zjy All permissions of
REVOKE ALL on zjy.* from [email protected]'%'
2.4 Query authority (show....for)
-- Query the user jy All permissions of
show grants for 'jy' @'%'
Because the authority was revoked before , So there is only one login permission left

3、 ... and 、 Building database
1、 Database building code
create database jy
2、 Set the code when building the database
create database if not EXISTS xz DEFAULT charset utf8 collate utf8_general _ci
Four 、 Four engines
The four engines are :InooDB、MyISAM、MEMORY、SHOW ENGINES. among InooDB It supports things , and MyISAM Do not support things , however MyISAM High query efficiency .
Add : Here it is InooDB、MyISAM Two data engines are commonly used ,
1.InooDB:
1、InnoDB The database engine has long been Mysql The direct product of flexible technology , This technology is mysql+api, In the use of mysql When , Almost every challenge you face
2、 From the isam and myisam Database engine , Support transaction processing and foreign keys .
2.MyISAM:
1、MyISAM yes MySQL Of ISAM Extended format .
2、MYISAM Fast read operations are emphasized , So it has the function of quick query .
边栏推荐
- 二叉搜索树
- 金仓数据库KingbaseES客户端编程接口指南-ODBC(5. 开发过程)
- Basic concept of MySQL database and deployment of MySQL version 8.0 (I)
- Objc4-841.13 debuggable / compiled source code update
- What if win11 cannot find the DNS address? Win11 can't find DNS and can't access the web page solution
- Rouyi cloud platform - how to realize the launch and login functions of the project and how to create new modules
- CV目标检测模型小抄(2)
- 金仓数据库 KingbaseES V8.3至V8.6迁移最佳实践(2. KingbaseES V8.3和 V8.6 兼容性)
- Anr questions often asked in Android interviews
- General paging - background
猜你喜欢

Go 中的并发 Concurrency

网络流量监控工具iftop

Shenkaihong: on the river of Zhilian of all things, there is a bright moon of open source

行泊一体迎爆发期,抢量产还是修技术护城河?

顶级“黑客”能厉害到什么地步?无信号也能上网,专家:高端操作!

The front mounted ADAS camera in parking increased by 54.15% year-on-year, with TOP10 suppliers taking the lead

22 Niuke multi school Day1 I - Introduction to chiitoitsu DP

Media query adaptation

MyCms 自媒体商城 v3.6 发布,兼容微擎应用开发(Laravel框架)

Why did "you" become a test / development programmer? The value of your existence
随机推荐
程序员成长第三十篇:识别真伪需求的神器
NVM use... Exit status garbled
金仓数据库KingbaseES客户端编程接口指南-ODBC(5. 开发过程)
1314_串口技术_RS232通信基础的信息
Basic concept of MySQL database and deployment of MySQL version 8.0 (I)
2022G3锅炉水处理考试模拟100题模拟考试平台操作
Arduino UNO驱动合宙1.8‘TFT SPI屏幕示例演示(含资料包)
22 Niu Ke multi school Day1 J - serval and essay heuristic merging
使用这个,你发的消息就无法被监控了
Programmer growth Chapter 30: artifact of identifying true and false needs
MyCms 自媒体商城 v3.6 发布,兼容微擎应用开发(Laravel框架)
Array array object
行泊一体迎爆发期,抢量产还是修技术护城河?
Runloop principle (II)
被忽视的智能电视小程序领域
如何开一家盈利的健身房?我用1年回本的经验告诉你,别谈恋爱
Routeros limited DNS hijacking and check
Why did "you" become a test / development programmer? The value of your existence
深开鸿:万物智联的大江上,升起一轮开源鸿蒙月
Object object