当前位置:网站首页>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 .
边栏推荐
- Industry experts talk about "extortion virus": how does e-government build a moat?
- Storage crash MySQL database recovery case
- Introduce the comparison of various distributed configuration centers? Which distributed configuration center is better?
- AI talk | solution for shopping mall inspection robot
- System library golang Org/x/time/rate frequency limiter bug
- 2022-2028 global cancer biopsy instrument and kit industry research and trend analysis report
- Dry goods how to build a data visualization project from scratch?
- golang with script
- Windowsvpn client is coveted by vulnerabilities, 53% of companies face supply chain attacks | global network security hotspot
- RI Geng series: tricks of using function pointers
猜你喜欢
![[summary of interview questions] zj5](/img/d8/ece82f8b2479adb948ba706f6f5039.jpg)
[summary of interview questions] zj5
![[51nod] 2106 an odd number times](/img/af/59b441420aa4f12fd50f5062a83fae.jpg)
[51nod] 2106 an odd number times

2022-2028 global tungsten copper alloy industry research and trend analysis report
![[summary of interview questions] zj6 redis](/img/4b/eadf66ca8d834f049f3546d348fa32.jpg)
[summary of interview questions] zj6 redis

2022-2028 global aircraft front wheel steering system industry research and trend analysis report

2022-2028 global aircraft wireless intercom system industry research and trend analysis report

Simple and beautiful weather code

2022-2028 global cancer biopsy instrument and kit industry research and trend analysis report

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

Permission maintenance topic: domain controller permission maintenance
随机推荐
AI talk | solution for shopping mall inspection robot
Simple and beautiful weather code
What does the cloud desktop server do? What are the cloud desktop functions
Tencent cloud CIF engineering efficiency summit ends perfectly
Cloud desktop server resource planning, what are the advantages of cloud desktop
How to design a hybrid system
The 2021 Tencent digital ecology conference is coming
Tencent location service appeared at the 11th China Surveying and mapping Geographic Information Technology Equipment Expo
Principle of efficient animation Implementation-A preliminary exploration of jetpack compose
Windowsvpn client is coveted by vulnerabilities, 53% of companies face supply chain attacks | global network security hotspot
How to pair cloud game servers? Is the cloud game server expensive?
How to strengthen prison security measures? Technologies you can't imagine
Is your posture correct—— A detailed discussion on horizontal sub database and sub table
System design: File Hosting Service
What is the maximum bandwidth of EIP? Mbps how to modify the bandwidth of EIP
[51nod] 3216 Awards
Kibana report generation failed due to custom template
Can elastic public IP be bound to a home server? The difference between elastic public IP and fixed IP
AI intelligent analysis is innovated again. In the future, the technical reserve of the security industry will become the top priority
Tstor onecos, focusing on a large number of object scenes