MySQL data analysis storage engine example explanation

MySQL data analysis storage engine example explanation

Today we are going to talk about the MySQL storage engine. As a friend who works in the data analysis industry, I always say that we don’t need to go into detail about what the MySQL storage engine is, as long as we understand it.

1. Introduce cases

There are two people, Zhang Ma Hu and Li Xiaoxin, who are bicycle managers at the subway entrance. Every day many people come to store and retrieve bicycles. Zhang Mahu's management method is to store the items on his own without recording what car it is. Li is very careful. When he parks or retrieves his bike, he records the characteristics of the person who parks the bike and the characteristics of the bike. When someone comes to pick up the bike, he has to carefully check whether the characteristics of the person and the bike correspond.

think:
Who handles business faster, Zhang Mahu or Li Xiaoxin? Who is safer in bicycle management, Zhang or Ma Hu? Databases have different storage and management methods for the same data. In MySQL, we call such a thing a storage engine.

The name storage engine exists only in the mysql database. There is a corresponding mechanism in Oracle, but it is not called a storage engine. In Oracle, it is called the storage method of the table.

MySQL supports many storage engines, each of which has its own data storage method. At the same time, each storage engine has its own advantages and disadvantages. Therefore, you need to choose a storage engine that suits you at the right time.

2. View the system's default storage engine and default character set

-- MySQL versions 5.0 and above support 9 storage engines.
-- There is no need to write a semicolon after this code.
mysql> show engines \G

-- View the system's current default storage engine.
mysql> show variables like '%storage_engine%';

-- View the system default character set.
mysql> show variables like '%char%';

3. Common storage engines

insert image description here

1) MyISAM: does not support transactions. (Zhang Ma Hu)

insert image description here

Advantages and disadvantages of MyISAM:

insert image description here

2) InnoDB: supports transactions. (Li Xiaoxin)

insert image description here

Advantages and disadvantages of InnoDB:

insert image description here

3) MEMORY (just understand this)

insert image description here

Advantages and disadvantages of MEMORY:

insert image description here

4. Just understand the picture below

insert image description here

The above is the detailed content of the example explanation of MySQL data analysis storage engine. For more information about MySQL data analysis storage engine, please pay attention to other related articles on 123WORDPRESS.COM!

You may also be interested in:
  • MySQL table type storage engine selection
  • Comparison of storage engines supported by MySQL database
  • Differences and comparisons of storage engines in MySQL
  • Advantages and disadvantages of common MySQL storage engines
  • Let's learn about the MySQL storage engine

<<:  HTML drawing user registration page

>>:  CSS3 realizes the animation of shuttle starry sky

Recommend

uniapp realizes the recording upload function

Table of contents uni-app Introduction HTML part ...

This article will show you the basics of JavaScript: deep copy and shallow copy

Table of contents Shallow copy Deep Copy Replenis...

JavaScript implements product details of e-commerce platform

This article shares a common example of viewing p...

Do you know how to use vue-cropper to crop pictures in vue?

Table of contents 1. Installation: 2. Use: 3. Bui...

Detailed explanation of JS browser storage

Table of contents introduction Cookie What are Co...

Explanation of the problem of selecting MySQL storage time type

The datetime type is usually used to store time i...

Solution to Linux server graphics card crash

When the resolution of the login interface is par...

About the pitfall record of Vue3 transition animation

Table of contents background Problem location Fur...

Steps for installing MySQL 8.0.16 on Windows and solutions to errors

1. Introduction: I think the changes after mysql8...

How to modify the length limit of group_concat in Mysql

In MySQL, there is a function called "group_...

The difference between z-index: 0 and z-index: auto in CSS

I've been learning about stacking contexts re...

Ten Experiences in Presenting Chinese Web Content

<br /> Focusing on the three aspects of text...