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

Classification of web page color properties

Classification of color properties Any color can ...

Understanding JSON (JavaScript Object Notation) in one article

Table of contents JSON appears Json structure Jso...

HTML special character conversion table

character Decimal Character Number Entity Name --...

Implementation steps for building multi-page programs using Webpack

It is very common to use webpack to build single-...

Docker network principles and detailed analysis of custom networks

Docker virtualizes a bridge on the host machine. ...

Solution to find all child rows for a given parent row in MySQL

Preface Note: The test database version is MySQL ...

Example code for implementing dynamic column filtering in vue+element table

Requirement: When displaying data in a list, ther...

Graphic tutorial on installing Ubuntu 18.04 on VMware 15 virtual machine

In the past few years, I have been moving back an...

Better-scroll realizes the effect of linking menu and content

1. Basic use <!DOCTYPE html> <html lang=...

Analysis of the usage of Xmeter API interface testing tool

XMeter API provides a one-stop online interface t...

Mysql tree-structured database table design

Table of contents Preface 1. Basic Data 2. Inheri...

Simple usage examples of MySQL custom functions

This article uses examples to illustrate the usag...

Detailed process of installing nginx1.9.1 on centos8

1.17.9 More delicious, really Nginx download addr...

MySQL 8.0.16 winx64 installation and configuration method graphic tutorial

I just started learning about databases recently....