当前位置:网站首页>Get to know MySQL database
Get to know MySQL database
2022-06-24 03:11:00 【GUTSZ】
First time to know MYSQL database
1. What is? MYSQL?
MYSQL Is a relational database management system .
2. What is a database ?
A database is a collection of structured information and data , namely Database is used to store and query data .
3. Classification of database :
The database can be divided into Relational database and Non relational database .
(1) Relational database : A database that uses a relational model to organize data . A relational model is a two-dimensional table model , A relational database is a data organization composed of two-dimensional tables and their previous connections .
Presentation form of relational database :
Common relational databases are :
Oracle,MYSQL,SQL Server,DB2.
(2) Non relational database : No rules based on SQL Realization , Now it's more about NoSQL database .
Common non relational databases are :
a. Based on key value pair (key-value):memcached,redis
b. Based on document type : Such as mongodb
c. Based on column family : Such as hbase
d. Based on pattern : Such as neo4j
(3) The difference between relational database and non relational database :
4.MYSQL form :
MYSQL The composition of is divided into two parts :
Server side ( Service provider ), client ( Users of services ).
There is only one server , The client can have more than one .
We install on this machine MYSQL, It shows that we are both a server and a client , The embodiment of server-side service is :
The client is using MySQL Command Line Client as follows :
Use MySQL Command Line Client You can connect to the server , Enter the correct password to connect MYSQL( Server side ):

Ordinary console connection :
Besides using MySQL Command Line Client Outside the connection , We can also use normal console commands to connect , The connection command is :
mysql -h 127.0.0.1 -P 3306 -u root -p
among :
-h: host Abbreviation , Connect to the server ip Address ( If you connect this machine , It can be omitted );
-P: port Abbreviation of port number , by msql The port number on the server side , The default is 3306( If the machine is connected, you can omit );
-u: username Abbreviation , Indicates the user root Connect ;
-p: password Abbreviation , Indicates the password of the connection ;
Specify data when connecting :-D Database name
add to mysql environment variable :
The following error may occur during the first connection :
mysql Not an internal or external command , Nor are they runnable programs or batch files .
At this time, we need to mysql Add to the connection variable of the system :
1. find mysql Installation directory ;

2. take mysql Configure to the system environment .


Restart the console , Use the command to connect as shown in the following figure :
5.MYSQL Composition of server side :
mysql Important components of the server side are 4 individual :
database , surface , Field ( Column data ), data ( Row data ).
The database is equivalent to java The package name in , The table is equivalent to the class name , A field is equivalent to an attribute in a class , Data is equivalent to instantiating the object .
6.MYSQL In the program “ Location ”
7. summary :
(1)MYSQL Belongs to relational database , Software for storing and viewing data , Database is a concept ,MYSQL It belongs to concrete implementation .
(2) Database classification : Relational database 、 Non relational database 、MYSQL Belongs to relational database .
(3)MYSQL The composition is divided into client and server , The server side consists of the database 、 The data table consists of . A server can have multiple databases , One data can have multiple tables , There can be multiple data in a table .
边栏推荐
- Tencent cloud CIF engineering efficiency summit ends perfectly
- How to set up a cloud desktop server? Is there a charge for cloud desktop server setup?
- How to build a shopping website? What problems should be paid attention to in the construction of shopping websites?
- Why can't the fortress machine open the port? There is a problem with the use of the fortress machine port
- [51nod] 2653 section XOR
- Use Charles to capture the package of the applet through the mobile agent
- Where is the cloud game server? Can individuals rent cloud game servers?
- [1024 programmers' day] Why do some programmers leave work earlier than you?
- Ner's past, present and future Overview - past
- Cloud call: one line of code is directly connected to wechat open interface capability
猜你喜欢

What is etcd and its application scenarios

2022-2028 global genome editing mutation detection kit industry survey and trend analysis report

2022-2028 global aircraft audio control panel system industry research and trend analysis report
![[51nod] 2102 or minus and](/img/68/0d966b0322ac1517dd2800234d386d.jpg)
[51nod] 2102 or minus and

UI automation based on Selenium

2022-2028 Global Industry Survey and trend analysis report on portable pressure monitors for wards
![[51nod] 2106 an odd number times](/img/af/59b441420aa4f12fd50f5062a83fae.jpg)
[51nod] 2106 an odd number times

2022-2028 global pilot night vision goggle industry research and trend analysis report

2022-2028 global indoor pressure monitor and environmental monitor industry research and trend analysis report

2022-2028 global portable two-way radio equipment industry research and trend analysis report
随机推荐
System design: File Hosting Service
What are the responsibilities of cloud desktop administrators? How to use cloud desktop?
Which domestic cloud desktop server is good? What are the security guarantees for cloud desktop servers?
Simple and beautiful weather code
Tencent cloud CIF engineering effectiveness summit was successfully opened, and coding released a series of new products
2022-2028 global cell-based seafood industry research and trend analysis report
Is it necessary to buy EIP? Price analysis of EIP
Is your database "cloud native"?
How to access the cloud game management server? Which cloud game management server can I choose?
Can elastic public IP be bound to a home server? The difference between elastic public IP and fixed IP
What is the principle of intelligent image recognition? What are the applications of intelligent image recognition?
Grpc: how to enable tls/ssl?
How to select a cloud game server? Which cloud game server recommends?
2022-2028 Global Industry Survey and trend analysis report on portable pressure monitors for wards
What if the computer audio and video engine is abnormal? What are the causes of abnormal computer audio and video engine?
Tencent Mu Lei: real scene 3D linking industrial Internet and consumer Internet
Heavy release! Tencent security hosting service TA is here!
Liaoyuan social cloud primary actual combat camp test environment script
Why should I change my PC to a cloud desktop server? What are the characteristics of this server?
Disaster recovery series (V) -- database disaster recovery construction