当前位置:网站首页>MySQL: understand the basic knowledge of MySQL and computer
MySQL: understand the basic knowledge of MySQL and computer
2022-07-27 04:06:00 【Xiaolian~】
List of articles
《MySQL》 Get to know MySQL Basic knowledge of computer
Preface :
This chapter mainly explains the basic knowledge of database and MySQL Knowledge about .
1 Study MySQL
MySQL The main learning contents of :
Basic operation of database , With SQL Statement is the core (SQL Is a programming language )
The underlying principle of database ( Is difficult )
Database programming ( adopt java Code operation database )
2 What is a database
2.1 Database introduction
As the name suggests, database is actually a tool for managing data . It's a software
Databases are divided into relational databases and non relational databases
There are also many relational database software :
MySQL
Open source , At present, databases with a large share in the market , It is also a database for classroom learning
Oracle
charge , ( It costs a lot ), Generally, it is used to have high requirements for data security Oracle It costs a lot of money , Chinese companies have opened " Go to Oracle" motion , Continuous improvement MySQL, send MySQL Has been greatly developed . Become one of the most powerful databases in the world . These two databases belong to Oracle company .
SQL server
Microsoft's database , Generally, many schools use SOL server To explain the database .
SQLite
This database is the largest installed database in the world , It is the built-in database of Android .
Non relational database :
Redis
MongoDB
HBase
…
2.2 install MySQL database
install MySQL: mysql Install video _ Bili, Bili _bilibili
It is recommended to set the password to simple , Avoid forgetting …
MySQL Client interface :

3 MySQL structure
3.1 MySQL It's a " client – The server " structure
client : The party who made the request voluntarily -> Data sent by the client to the server , be called " request "
The server : The party that responded passively -> The data returned by the server to the client , be called " Respond to "
A server can provide services for multiple clients at the same time .
The general server is 24 Running in hours , Serve clients anytime, anywhere .
installed MySQL, We installed the client , The server is also installed .

MySQL in , Storing and managing data , It's all by MySQL The server is responsible for , Because of that ,MySQL The server of is much more complex than the client , So generally, when interviewing , talk about MySQL Generally, it directly replaces the server !!!
3.2 MySQL Organization data
One MySQL The server can manage multiple " database "( The database here is not software , It is the place where related data is stored , That is, the collection of data )

Data can be stored together , But in order to avoid mutual interference between data , Therefore, the data is logically separated .( That is to store data in different databases )
There are multiple data tables in each data .

Each table has multiple rows , Each line is called a record
Each row has multiple columns , Each column has different meanings , Also known as a " Field "
Whether it's Oricle still MySQL, As long as it's a relational database , Data is stored in the above way .
4. The von Neumann system
Von Neumann :


The von Neumann system :
CPU
Memory -> A device that stores data
input device
Output devices
Computers store data in binary .
Memory is divided into external memory and memory :
Memory : That is, what we usually call memory , For temporary storage CPU Operation data in , And data exchanged with external memory such as hard disk .
External storage : External memory refers to memory other than memory , This kind of storage can still be stored after power failure .
for example : Hard disk , Compact disc , floppy disk
The difference between memory and external memory ( a key )
Memory storage space is relatively small , The storage space of external memory is relatively large
CPU Reading data from memory is faster , and CPU Reading data from external memory is slow ( Difference between 3-4 An order of magnitude )
The price of memory is much higher than that of external memory
The data on the memory will be lost when it is powered off , The data stored outside will not be lost after power failure .
MySQL Store data on hard disk
So in the actual development , Generally, performance bottlenecks tend to appear in the database .
5. MySQL Simple operation of
Rule of grammar :
SQL Keyword is case insensitive
Semicolons cannot be forgotten , Some statements can be without semicolons , But if you add it, you won't report an error .
Error information when keyword input is wrong :

5.1 Create database
create database Database name ;

5.2 Display database
show databases;

5.3 Select database
When we need to perform specific operations on data , You need to select the database to operate
use Database name ;

summary :
This chapter focuses on understanding MySQL As well as MySQL Relevant computer foundation …

边栏推荐
- H.265网页播放器EasyPlayer对外开放录像的方法
- Golang JWT cross domain authentication
- Development of NFT digital collection system: Xiaoyi digital intelligence helps brands launch NFT with one click on the chain
- C. Cypher
- flinkSQLclient创建的job,flink重启就没了,有什么办法吗?
- [Yugong series] July 2022 go teaching course 018 switch of branch structure
- Message queue learning -- Concepts
- C语言入门实战(12):求自然常数e的值
- [semidrive source code analysis] [drive bringup] 41 - LCM drive backlight backlight control principle analysis
- Parallel desktop startup virtual machine "operation failed" problem solution
猜你喜欢
![[Android synopsis] kotlin multithreaded programming (I)](/img/04/4349bacbd401868d73a3b05d018b66.png)
[Android synopsis] kotlin multithreaded programming (I)

Maximum subarray cumulative sum less than or equal to K

ApacheCon Asia 预热直播之孵化器主题全回顾

路由策略第一关
![[Yugong series] July 2022 go teaching course 018 switch of branch structure](/img/50/171a083713597f1b5643835377a12d.png)
[Yugong series] July 2022 go teaching course 018 switch of branch structure

Plato Farm有望通过Elephant Swap,进一步向外拓展生态

Okaleido tiger is about to log in to binance NFT in the second round, which has aroused heated discussion in the community

Golang发送邮件库email

Message queue learning -- Concepts

VR全景制作在家装行业是谈单利器?这是为什么呢?
随机推荐
商业打假系列之第一百之--无聊的制度和管理流程真的可以扔进垃圾桶-顺便分析十几个无用的Unity游戏自检项目
Redis (IX) - redis distributed lock
Read and understand | how data center supports enterprise digital operation
Leetcode- > dichotomy (III)
On the first day of Shenzhen furniture exhibition, the three highlights of Jin Ke'er booth were unlocked!
C语言学习笔记 —— 内存管理
ZJCTF_ login
【OBS】circlebuf
真正意义上的数字零售应当具有更加丰富的内涵和意义
第五届强网杯全国网络安全挑战赛 题目复现(有题目附件,详解)
一文读懂 | 数据中台如何支撑企业数字化经营
【SemiDrive源码分析】【驱动BringUp】41 - LCM 驱动 backlight 背光控制原理分析
0726~ resume sorting interview summary
First pass of routing strategy
Summer meal | rich people are different from what you think (day 5) + power system power flow simulation (documents and matlab code)
Day 28 of leetcode
面试题:String类中三种实例化对象的区别
回归测试:意义、挑战、最佳实践和工具
288页18万字智能化校园总体设计 目录
这个FlinkCDC会监控数据库中所有的表?还是指定的表呢?我看后台日志,他是监控了所有表,如果监控