当前位置:网站首页>A brief introduction to database mysql
A brief introduction to database mysql
2022-06-30 10:16:00 【thengsd】
Catalog
One 、 Basic concepts of database
1、 The composition of the database
- data (Data)
- A symbolic record of things
- Including digital , written words 、 graphics 、 Images 、 voice 、 Records, etc
- With “ Record ” Forms are stored in a unified format
- surface
- Organize different records together , Used to store specific data
- database
- Set of tables , It's a warehouse for storing data
- A collection of interrelated data stored in a certain organization
2、 Database system
- Database system (DBS)
- It's a human computer system , By hardware 、OS、 database 、DBMS、 Application software and database users
- The user can go through DBMS Or the application operates the database

- Database management system (DBMS)
- Is to achieve effective organization of database resources 、 System software for management and access
- function : Establishment and maintenance of database 、 Data definition function 、 Data manipulation function 、 Database operation and management functions 、 Communications functions
Two 、 The history of database system development
1、 First generation database
- since 20 century 60 s , The first generation database system came out
- It is a database system of hierarchical model and mesh model
- It provides strong support for unified management and data sharing
2、 Second generation database
- 20 century 70 s , Second generation database —— Relational databases are beginning to appear
- 20 century 80 s ,IBM The company's relational database system DB2 available , Start to gradually replace the database of hierarchical and mesh model , Become the mainstream of the industry
- up to now , Relational database system still occupies the main position of database application
3、 Third generation database
- since 20 century 80 s , New database systems for different fields are emerging
- Object oriented database system , Practical 、 It has a wide range of adaptability
- 20 century 90 Late S , A variety of database systems support applications together
- Some new elements have been added to mainstream database systems
- for example ,Oracle Supported by “ Relationship — object ” database model
3、 ... and 、 Today's mainstream databases
- SQL Server ( Microsoft products )
- oriented Windows operating system
- Simple 、 Easy to use
- Oracle ( Oracle products )
- For all mainstream platforms
- Security 、 perfect 、 The operation is complicated
- DB2 (IBM The products of the company )
- For all mainstream platforms
- large 、 Security 、 perfect
- MySQL ( Oracle buys )
- free 、 Open source 、 Small volume
Most companies use MySQL, Because it's free 、 Open source .
- free 、 Open source 、 Small volume
Four 、 Introduction to relational database
1、 Understanding relational databases
- Relational database system is a database system that organizes data based on relational model
- The data structure of relational model uses two-dimensional data table which is easy to understand
- Each line is called a record , Information used to describe an object
- Each column is called a field , Used to describe an attribute of an object
- The relational model can be simply " Entity - Relationship "(E-R) It is shown in the figure
- E-R Include entities in the diagram ( Data objects )、 Three elements of relationship and attribute

- Entity
- Also known as instances , Corresponding to the real world can be distinguished from other objects “ event ” or “ thing ”
- For example, bank customers 、 Bank accounts, etc
- attribute
- A property of an entity , An entity can have multiple properties
- for example “ Bank customers ” Each entity in the entity set has a name 、 address 、 Phone and other attributes
- contact
- The correspondence between entity sets is called connection , Also called relationship
- For example, there is a relationship between a bank customer and a bank account “ savings ” The relationship between
- A collection of all entities and relationships between entities form a relational database
2、 Application of relational database
(1) Relational database
- Oracle、Mysql
- SQLServer、Sybase
- Informix、access
- DB2、FoxPRO
(2) Applications in life
- 12306 User information system
- Taobao account system
- Website user information system, etc
5、 ... and 、 Introduction to non relational database
- Non relational databases are also called NoSQL (Not Only SQL)
- Storing data is not based on a relational model , No fixed table format is required
- Advantages of non relational database
- Database can be read and written with high concurrency
- Efficient storage and access to massive data
- Database has high scalability and high availability
- Common non relational databases
- Redis
- mongoDB
6、 ... and 、MySQL Database introduction
1、MySQL
- A popular open source relational database
- Oracle Our products
- comply with GPL agreement , It can be used and modified free of charge
- characteristic
- Performance is remarkable 、 Stable service
- Open source 、 No copyright restrictions 、 The cost is low
- Multithreading 、 Multi user
- be based on C/S( client / The server ) framework
- Safe and reliable
2、MySQL Business and community
(1)MySQL Business and community
- MySQL The commercial version is made up of MySQL AB The company is responsible for the development and maintenance of , You need to pay to use
- MySQL The Community Edition is made up of MySQL developer 、 Fans work together to develop and maintain , Free to use
(2) Difference between them
- The organization, management and testing of the commercial version are more strict , It will be more stable than the community version
- The commercial version does not comply with GPL, Community compliance GPL Free to use
- The commercial version is available 7*24 Hours of service , The community edition does not
边栏推荐
- 【JVM】G1垃圾回收器简述
- 关于字符串的split和join操作
- 【C语言快速上手】带你了解C语言,零基础入门③
- unable to convert expression into double array
- The URL copied by the browser and pasted into the document is a hyperlink
- 乡村振兴公益基金启动暨古茶树非遗保护公益行发布
- unable to convert expression into double array
- Horrible bug records
- 著名画家史国良《丰收时节》数字藏品上线长城数艺
- Practice of super integration and transformation of core production business of public funds
猜你喜欢

力扣 428. 序列化和反序列化 N 叉树 DFS

Shenhe thermomagnetic: Super fusion dual active cluster solution for MES system

G code explanation | list of the most important G code commands

无人机项目跟踪记录八十三---pcb图完成

How does the diode work?

The present situation and challenge of the infrastructure of Yiwen parsing database

Force buckle 428 Serialize and deserialize n-tree DFS

Shell script multi loop experiment

Appium自动化测试基础 — 12.APPium自动化测试框架介绍

How to build a private cloud and create a hybrid cloud ecosystem?
随机推荐
JS get the substring of the specified character position and the specified character position interval of the specified string [simple and detailed]
栈题目:字符串解码
打通供应链 深圳礼品展助跨境电商寻破局之道
6.Redis新数据类型
Description of event object
Shenhe thermomagnetic: Super fusion dual active cluster solution for MES system
G-Code 详解
Critical applications and hyper converged infrastructure: the time has come
Js獲取指定字符串指定字符比特置&指定字符比特置區間的子串【簡單詳細】
Some domestic image sources
Application exploration and practice of super convergence in the production environment of insurance industry
MIT-6874-Deep Learning in the Life Sciences Week4
Nlopt -- Nonlinear Optimization -- principle introduction and application method
UAV project tracking record 83 -- PCB diagram completion
Description of event flow
长城数艺数字藏品平台发布创世徽章
G 代码解释|最重要的 G 代码命令列表
9.缓存优化
Js获取指定字符串指定字符位置&指定字符位置区间的子串【简单详细】
将小程序容器技术应用到物联网IoT生态建设中