当前位置:网站首页>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 …

边栏推荐
猜你喜欢

分享当下人生——一个高中毕业生在中央电视台的六星期实习经历

Parallel desktop startup virtual machine "operation failed" problem solution

JVM原理简介

04.在谷歌浏览器中安装模拟浏览器ChromeDriver的详细步骤

小于等于K的最大子数组累加和

「Gonna Be Alright 会好的」数藏现已开售!感受艺术家的心灵共鸣

阿里云服务器域名加端口网页不能访问问题记录

Maximum subarray cumulative sum less than or equal to K

第五届强网杯全国网络安全挑战赛 题目复现(有题目附件,详解)

Bean Validation原理篇--07
随机推荐
mysql中case when返回多个字段处理方案
JVM原理简介
Startup process and rescue mode
Greenplum [deployment 08] database small version upgrade process and problem handling error: open-source-greenplum-db-6 conflicts with
Specific use of multithreading
Process analysis of object creation
第六周复习
LeetCode 第二十七天
C. Cypher
Case when in MySQL returns multiple field processing schemes
JS array de duplication (including simple array de duplication and object array de duplication)
3381. Mobile keyboard (Tsinghua University postgraduate entrance examination machine test question)
NFT digital collection system development: old brand literary magazines play with trendy Digital Collections
[untitled]
The fifth strong network cup national network security challenge Title reappearance (with title attachment, detailed explanation)
PSINS工具箱中轨迹生成工具详细解析
Detailed tutorial of typera
Restful fast request 2022.2.2 release, supporting batch export of documents
物联网智能家居项目---智能卧室
VR全景制作在家装行业是谈单利器?这是为什么呢?