search
HomeDatabaseMysql TutorialMySQL存储引擎InnoDB、MyISAM 、其它存储引擎介绍_MySQL

MySQL的不断更新与变化,其实最重要的就是存储引擎的变化和升级,也衍生了很多不同的存储引擎。我们在建立MySQl数据库(也可以成为schema)时基本也会忽略存储引擎的选择,因为一般情况下我们都直接使用的默认存储引擎。

 在MySQL 5.1及之前的版本-MyISAM是默认的存储引擎

在MySQL 5.5及以后的版本-InnoDB是默认的存储引擎

MyISAM和InnoDB应该属是MySQL最常用的两种存储引擎。从发展史来说InnoDB比MyISAM出现得更晚,功能也就更强大,但它不能完全代替MyISAM正是它功能的强大影响了它的性能。有人在追求性能,依然选择MyISAM,当然就放弃的InnoDB的特有功能。

1、InnoDB存储引擎

InnoDB是如今MySQL的默认事务型引擎,也是最重要、使用最广泛的存储引擎。它被设计用来处理大量

的短期事务。Oracle也投入了大量的资源来修改InnoDB,也得到很好的提高,相信后期的版本中InnoDB将近一步的改善。“InnoDB事务模型和锁”也就是最大的特点,当然InnoDB的行为时很复杂的。

(事务处理:类似于在插入两张表是,第一张成功,第二张失败。就会实现“回滚”,删除第一张成功插入的数据)

2、MyISAM存储引擎

MyISAM作为最早的存储引擎之一,经过多年的发展,可以满足用户的实际需求。MyISAM引擎的简单设计,数据以紧密格式存储,所以在大量的情况下性能很好。

3、MySQL内建的其他存储引擎

Archive引擎、Blackhole引擎、CSV引擎、Memory引擎、Merige引擎、NDB集群引擎,当然每个存储引擎都有它的特有特点,不然也不会生存到现在。

4、第三方存储引擎

XtraDB存储引擎、TokuDB存储引擎、Aria存储引擎(Maria改名)、Groonga存储引擎、SphinxSE引擎。上面也只是列举的一下常见的存储引擎,选择存储引擎首先需要了解引用的基本要求,不如InnoDB和MyISAM,如果逻辑复杂当然InnoDB是一个最好的选择,如果是一个凸显性能当让MyISAM要好一些。当让说实话在选择存储引擎与数据库版本时都会带有个人情感,比如我就选择的是Aria存储引擎来开发的一个


医药吧网站(www.yi18.net),其目的是代替MyISAM。这里就带有个人情感“支持MySQL分支与社区”,当让听说Aria比MyISAM性能更好,其实也可以用 XtraDB来代替InnoDB。这些选择都是带有感情色彩。

原文地址:http://blog.yi18.net/articles/2014/05/05/1399270094003.html

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Reduce the use of MySQL memory in DockerReduce the use of MySQL memory in DockerMar 04, 2025 pm 03:52 PM

This article explores optimizing MySQL memory usage in Docker. It discusses monitoring techniques (Docker stats, Performance Schema, external tools) and configuration strategies. These include Docker memory limits, swapping, and cgroups, alongside

How to solve the problem of mysql cannot open shared libraryHow to solve the problem of mysql cannot open shared libraryMar 04, 2025 pm 04:01 PM

This article addresses MySQL's "unable to open shared library" error. The issue stems from MySQL's inability to locate necessary shared libraries (.so/.dll files). Solutions involve verifying library installation via the system's package m

How do you alter a table in MySQL using the ALTER TABLE statement?How do you alter a table in MySQL using the ALTER TABLE statement?Mar 19, 2025 pm 03:51 PM

The article discusses using MySQL's ALTER TABLE statement to modify tables, including adding/dropping columns, renaming tables/columns, and changing column data types.

Run MySQl in Linux (with/without podman container with phpmyadmin)Run MySQl in Linux (with/without podman container with phpmyadmin)Mar 04, 2025 pm 03:54 PM

This article compares installing MySQL on Linux directly versus using Podman containers, with/without phpMyAdmin. It details installation steps for each method, emphasizing Podman's advantages in isolation, portability, and reproducibility, but also

What is SQLite? Comprehensive overviewWhat is SQLite? Comprehensive overviewMar 04, 2025 pm 03:55 PM

This article provides a comprehensive overview of SQLite, a self-contained, serverless relational database. It details SQLite's advantages (simplicity, portability, ease of use) and disadvantages (concurrency limitations, scalability challenges). C

Running multiple MySQL versions on MacOS: A step-by-step guideRunning multiple MySQL versions on MacOS: A step-by-step guideMar 04, 2025 pm 03:49 PM

This guide demonstrates installing and managing multiple MySQL versions on macOS using Homebrew. It emphasizes using Homebrew to isolate installations, preventing conflicts. The article details installation, starting/stopping services, and best pra

How do I configure SSL/TLS encryption for MySQL connections?How do I configure SSL/TLS encryption for MySQL connections?Mar 18, 2025 pm 12:01 PM

Article discusses configuring SSL/TLS encryption for MySQL, including certificate generation and verification. Main issue is using self-signed certificates' security implications.[Character count: 159]

What are some popular MySQL GUI tools (e.g., MySQL Workbench, phpMyAdmin)?What are some popular MySQL GUI tools (e.g., MySQL Workbench, phpMyAdmin)?Mar 21, 2025 pm 06:28 PM

Article discusses popular MySQL GUI tools like MySQL Workbench and phpMyAdmin, comparing their features and suitability for beginners and advanced users.[159 characters]

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools