当前位置:网站首页>[introduction to MySQL] the first sentence · first time in the "database" Mainland
[introduction to MySQL] the first sentence · first time in the "database" Mainland
2022-07-06 17:43:00 【kikokingzz】
Write it at the front
Long time no see , I miss you so much ~ I've been busy cleaning the house recently , Prepare a small decoration , Build a small E-sports themed room , So lazy for a few days ( In fact, the articles written before have not been saved , Dropped the network and deleted it ~~~~(>_<)~~~~). Okay , Without further ado , This time I plan to start writing about the basic knowledge of data analysis , In the future, the route planning for data analysis is also gradually planned , But about 【 database 】 This kind of content is certainly an indispensable basic knowledge reserve , therefore Students and leaders who are interested in data analysis can continue to pay attention to this column !
Catalog
Knowledge point 1: Database “ Basic personal information ”
1.1.1 The concept of databases
1.1.4 Non relational and relational databases
Knowledge point 2: Database related software download tutorial
2.1 MySQL Equipment and use of
2.1.2 MySQL Handle installation
2.1.3 MySQL Hand to hand inspection
Knowledge point 1: Database “ Basic personal information ”
1.1 Some concepts of database
1.1.1 The concept of databases
Q1: What is a database ?
A1: database (database) Is a container for storing organized data , It collects and saves a large amount of data and processes them by computer , Efficient access . We often use database in our life , For example, we are in CSDN Mid search “ database ”, At this point, we are using the database ; When we log in CSDN when , Also rely on the database to verify the account and password .
Q2: What is database management system (DBMS)?
A2: Database is a term , Usually, the ones we use Database software should be called database management system (DBMS). Database is through DBMS Containers created and manipulated , We have no direct access to the database , We use DBMS, It accesses the database for us .
Currently common database management software (DBMS) Yes :
- Oracle:Oracle Database, also called Oracle RDBMS, Or abbreviation Oracle. Oracle is a relational database management system . It is a leading product in the field of database .
- Microsoft SQL Server:SQL Server It's a database management system developed by Microsoft , yes Web The most popular database for storing data on , It has been widely used in e-commerce 、 Bank 、 insurance 、 Power and other database related industries .
- MySQL:MySQL Is the most popular open source SQL Database management system , It consists of MySQL AB Development 、 Release and support .MySQL AB It's a family based on MySQL The developer's business company , It's a second generation open source company that uses a successful business model to combine open source value and methodology .
- DB2:DB2 It is mainly used in large application system , It has good scalability , Supports from mainframe to single user environments , Apply to all common server operating system platform .
- Redis:redis It's a key-value The storage system . It supports storage value There are more types , Include string( character string )、list( Linked list )、set( aggregate )、zset(sorted set -- Ordered set ) and hash( Hash type ).
- MongoDB:MongoDB Is a database based on distributed file storage . from C++ Language writing . For the purpose of WEB Applications provide scalable, high-performance data storage solutions .
1.1.2 What is? SQL?
SQL Structured query language (Structured Query Language) Abbreviation , Is a specialized language for communicating with databases ; It consists of very few words , It can be applied to almost all important DBMS, Very flexible .
Q1:SQL Is it completely portable ?
A1:SQL It is not a patent language , It has a Standards Committee , It attempts to define a variety of DBMS The use of SQL grammar , But any two DBMS Realized SQL Not exactly the same , Therefore, the syntax used in this column is aimed at MySQL Of , If used for other DBMS, Please be sure to go to its official website to consult the manual for learning .
1.1.3 What is? MySQL?
We store data 、 retrieval 、 Management and processing is done by the database management system (DBMS) This software completes ,MySQL It's based on “ The client — The server ” Of DBMS, It has the following advantages :
- The cost is zero :MySQL Open source , So you can use it for free , Free modification .
- Strong performance : Small volume 、 Fast , Support multiple operating systems , The interface provided supports multiple language connection operations .
- Easy to use :MySQL Easy to install , And easy to use .
Q1: What is? “ The client —— The server ” Of DBMS?
A1:DBMS There are two main categories , One is based on a shared file system DBMS, The other is based on “ The client — The server ” Of DBMS, The main differences are as follows :
- Based on shared file system : Its representative is Microsoft Access and FileMaker, Mainly used for desktop purposes , Usually not used in high-end or more critical applications .
- be based on “ The client — The server ” Of : Wen as his name , This kind of DBMS It is divided into client part and server part . The server part is a software responsible for all data access and processing , Only server software deals with data files , That is, the operations of adding, deleting, modifying and querying data are completed by the server software . The client part is the software that deals with users , As a “ Second biography ”, Submit the user's operation request to the server software through the network for processing , When the server finishes processing the request , Then it is passed to the user through the client software .
1.1.4 Non relational and relational databases
1、 Relational database
Relational database , Means the adoption of relational model To organize a database of data , It stores data in the form of rows and columns , To make it easy for users to understand , This series of rows and columns in a relational database is called a table , A group of watches make up database . Relational model can be simply understood as two-dimensional table model , A relational database consists of Two-dimensional table And the relationships between them constitute a data organization .
Typical representatives of relational databases are MySQL、Oracle、SQL Server etc. , It also has the following characteristics :
- Easy to understand . Logically similar to common tables .
- High data consistency , High integrity , Low redundancy ; The low redundancy is shown in , When the above table 1 There is 100 Classes of students are 715 class , At this point we just need to look at the table 2 Record once in the class information form 715 Class teacher information is enough , There is no need to record the information of the head teacher for each student .
- Mature technology , You can use complex operations such as external links .
2、 Non relational database
NoSQL, A general term for a non-relational database , They don't guarantee the ACID characteristic , That is, there is no guarantee that the data in the process of writing or updating the data Atomicity ( Or indivisibility )、 Uniformity 、 Isolation, 、 persistence .
Q1: Why are there non relational databases ?
A1: With the Internet web2.0 The rise of websites , Traditional relational databases are dealing with web2.0 Website , Especially large scale and high concurrency SNS Type of web2.0 Pure dynamic website has appeared to be powerless , There are a lot of insurmountable problems , The non-relational database has developed rapidly due to its own characteristics .NoSQL The emergence of database is to solve the challenge of large data sets and multiple data types , Especially big data application problems .
Non relational database data storage : Store key value pairs 、 file 、 Image and other data . Let's take key value pairs as an example :
Typical examples of non relational databases are MongoDB、Redis etc. , It has the following characteristics :
- High query efficiency . For example, we need to query kiko Classmate teacher, We just need to find the one that contains kiko This student's record , This record contains kiko Of teacher Information , Directly available , Therefore, the query efficiency is very fast , We don't need to be like a relational database , You have to look in other data records .
- It is easy to cause data redundancy . Empathy , If 715 Ben you 100 A classmate , If you use a non relational database , At this time, we need to record one in each student's record teacher Key value pairs of information , That is to record 100 Information of the second class teacher .
Knowledge point 2: Database related software download tutorial
2.1 MySQL Equipment and use of
2.1.1 MySQL Download by hand
step1. Click to enter MySQL Official website :MySQL
step2. Click on 【DOWNLOADS】, Then click on the... At the bottom of the page 【MySQL Community Downloads】
step3. Enter the next page , Click on 【MySQL Installer for Windows】
step4. Select the large file below , And then click 【Download】 Start the download .step5. Here, according to your own wishes , I won't log in , So click 【No thanks···】, Then the program starts downloading .
PS: Of course! , I also provide downloaded MySQL For everyone to use , You can send it in the official account 【MySQL download 】, You can get the network disk link ~
2.1.2 MySQL Handle installation
step1. As learning words , We click 【Server only】 that will do , And then click 【Next】.
step2. Click on 【Execute】 after , Start the service installation .
step3. Display installation complete , After that, click 【next】 Until you enter the authentication page .
step4. The authentication page is displayed , We operate in the following order .
step5. After setting the password, we kept clicking 【Next】 Default operation , Until it appears on the following page , Click on the 【Execute】 after , The following figure appears , The installation is successful .2.1.3 MySQL Hand to hand inspection
To test our MySQL Is it installed correctly , Let's check it by following some operations :
step1. open MySQL Command line page , And enter the password we set during installation , Now enter the welcome interface .
step2.MySQL It's a database management system , There is more than one database under this system , So we can use the following command to show MySQL The database of .
show databases;
step3. We can also create a database ourselves db1, This is achieved by the following command :
create database db1;
Through the above basic operations , If they all work properly , It means that we download and install MySQL Have succeeded !
I'm the divider
2.2 Navicat Equipment and use of
2.2.1 Navicat Download by hand
step1. Click the official website link :Navicat for MySQL Price plan | Navicat The store
step2. Click to buy 【 Permanent license 】 edition , I suggest you to use it for learning , You can choose a non-commercial version to download
PS: Of course! , As a student party learning words , You can use the green version Navicat, You can reply in the official account below 【Navicat download 】, You can get the network disk link ! Be careful , For learning purposes only , Commercial use must support genuine !
2.2.2 Navicat Handle installation
About its specific installation tutorial , If you buy a genuine product, you can do it step by step , Installation of other versions , You can refer to the following tutorial for installation , Close test effectively !
Navicat 16.0 Detailed installation tutorial https://mp.weixin.qq.com/s/bNVSRUEcpXiAe57hklDvDw
2.2.3 Navicat Hand to hand inspection
We test Navicat Whether it is installed normally , Is in the Navicat Middle link MySQL, The specific operation is as follows :
step1. Click on 【 file 】 after , Click on MySQL Of 【 make new connection 】.
step2. Input installation MySQL The password set when , And then click 【 determine 】
step3. Check the left side to find Navicat Already connected to MySQL 了 .
Of course, we can also get through Navicat How to enter statements in , Number of query databases , To verify whether the connection is successful , Its operation is as follows :
step 1: Click on 【 Inquire about 】, And then click 【 New query 】, Then a pop-up will pop up that allows you to enter MySQL Statement interface .
step 2: We enter show databases; after , Click on 【 function 】, You can see the running results .
Through the above operations, we can verify our Navicat It has been installed successfully !
边栏推荐
- EasyCVR授权到期页面无法登录,该如何解决?
- The art of Engineering (3): do not rely on each other between functions of code robustness
- [getting started with MySQL] fourth, explore operators in MySQL with Kiko
- Openharmony developer documentation open source project
- 【Elastic】Elastic缺少xpack无法创建模板 unknown setting index.lifecycle.name index.lifecycle.rollover_alias
- Spark calculation operator and some small details in liunx
- Kali2021 installation and basic configuration
- Flink parsing (III): memory management
- The NTFS format converter (convert.exe) is missing from the current system
- Automatic operation and maintenance sharp weapon ansible Playbook
猜你喜欢
03个人研发的产品及推广-计划服务配置器V3.0
C# WinForm中DataGridView单元格显示图片
PySpark算子处理空间数据全解析(4): 先说说空间运算
当前系统缺少NTFS格式转换器(convert.exe)
Development and practice of lightweight planning service tools
在一台服务器上部署多个EasyCVR出现报错“Press any to exit”,如何解决?
05 personal R & D products and promotion - data synchronization tool
FlutterWeb瀏覽器刷新後無法回退的解决方案
BearPi-HM_ Nano development environment
Flink parsing (III): memory management
随机推荐
04个人研发的产品及推广-数据推送工具
Chrome prompts the solution of "your company management" (the startup page is bound to the company's official website and cannot be modified)
中移动、蚂蚁、顺丰、兴盛优选技术专家,带你了解架构稳定性保障
CTF reverse entry question - dice
Sqoop I have everything you want
connection reset by peer
Pyspark operator processing spatial data full parsing (4): let's talk about spatial operations first
DataGridView scroll bar positioning in C WinForm
yarn : 无法加载文件 D:\ProgramFiles\nodejs\yarn.ps1,因为在此系统上禁止运行脚本
【MySQL入门】第三话 · MySQL中常见的数据类型
Redis quick start
RepPoints:可形变卷积的进阶
[translation] principle analysis of X Window Manager (I)
Total / statistics function of MySQL
Optimization of middle alignment of loading style of device player in easycvr electronic map
Vscode replaces commas, or specific characters with newlines
【MySQL入门】第四话 · 和kiko一起探索MySQL中的运算符
Precipitated database operation class - version C (SQL Server)
Flink parsing (IV): recovery mechanism
EasyCVR接入设备开启音频后,视频无法正常播放是什么原因?