当前位置:网站首页>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 .
边栏推荐
- How does VR panorama entrepreneurship expand the market? How to make the road of entrepreneurship smoother?
- Solve the problem of using anonymous users in pod due to the failure of attaching ciphertext token files for serviceaccount user authentication
- 6 open source tutorials of super conscience!
- 一文读懂Okaleido Tiger近期动态,挖掘背后价值与潜力
- Messages from students participating in the competition: memories of the 17th session
- 顶级“黑客”能厉害到什么地步?无信号也能上网,专家:高端操作!
- KingbaseES客户端编程接口指南-ODBC(4. 创建数据源)
- 多模态模型小抄(1)
- 如何在VR全景中嵌入AI数字人功能?打造云端体验感
- 2022年R2移动式压力容器充装考题模拟考试平台操作
猜你喜欢

互动滑轨屏在展厅中应用的制作步骤

ACM SIGIR 2022 | 美团技术团队精选论文解读

Rhce第一天

【自】-刷题-集合

What if win11 cannot find the DNS address? Win11 can't find DNS and can't access the web page solution

With the "integration of driving and parking", freytek's high-performance domain controller leads the new track

Win11快捷复制粘贴不能用怎么办?Win11快捷复制粘贴不能用

Programmer growth Chapter 30: artifact of identifying true and false needs

Development of small programs ②

网络流量监控工具iftop
随机推荐
Mgr.exe virus caused the startup program to fail
KingbaseES客户端编程接口指南-ODBC(4. 创建数据源)
Binary search tree
Assembly analysis swift polymorphism principle
Kotlin JVM annotation
Solve the problem of using anonymous users in pod due to the failure of attaching ciphertext token files for serviceaccount user authentication
这个胶水有多强呢?
字节8年女测试总监工作感悟—写给想转行或即将进入测试行业的女生们...
可视化全链路日志追踪
Byte 8 years' experience of female test Director - for girls who want to change careers or are about to enter the testing industry
WebView whitelist
事件抽取文献整理(2018)
Programmer growth Chapter 30: artifact of identifying true and false needs
VR全景创业如何开拓市场?如何让创业之路更加顺畅?
Arduino框架下STM32F103C系列单片机引脚映射关系
Rouyi cloud platform - how to realize the launch and login functions of the project and how to create new modules
JSP tag case
「行泊一体」放量,福瑞泰克高性能域控制器领跑新赛道
1314_串口技术_RS232通信基础的信息
mongodb索引添加、查看、导出、删除