Home Database Mysql Tutorial MySQL的MyISAM引擎不支持事务

MySQL的MyISAM引擎不支持事务

Jun 07, 2016 pm 05:27 PM
myisam

找一天的 spring 事务回滚错误,终于找到了 原来 MySQL的MyISAM引擎,是不支持事务处理的 唉~~~ 看看mysql 用少了

找一天的 spring 事务回滚错误,终于找到了  原来 MySQL的MyISAM引擎

是不支持事务处理的 唉~~~ 看看mysql 用少了  郁闷 写下来 做个记录

mysql的存储引擎包括:MyISAM、InnoDB、BDB、MEMORY、MERGE、EXAMPLE、NDBCluster、ARCHIVE、CSV、BLACKHOLE、FEDERATED等,其中InnoDB和BDB提供事务安全表,其他存储引擎都是非事务安全表。

最常使用的2种存储引擎:

1.Myisam是Mysql的默认存储引擎,当create创建新表时,,未指定新表的存储引擎时,默认使用Myisam。每个MyISAM在磁盘上存储成三个文件。文件名都和表名相同,扩展名分别是.frm(存储表定义)、.MYD(MYData,存储数据)、.MYI(MYIndex,存储索引)。数据文件和索引文件可以放置在不同的目录,平均分布io,获得更快的速度。

2.InnoDB存储引擎提供了具有提交、回滚和崩溃恢复能力的事务安全。但是对比Myisam的存储引擎,InnoDB写的处理效率差一些并且会占用更多的磁盘空间以保留数据和索。

linux

Statement of this Website
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

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

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Roblox: Bubble Gum Simulator Infinity - How To Get And Use Royal Keys
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Nordhold: Fusion System, Explained
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Mandragora: Whispers Of The Witch Tree - How To Unlock The Grappling Hook
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hot Topics

Java Tutorial
1666
14
PHP Tutorial
1273
29
C# Tutorial
1252
24
MySQL storage engine selection comparison: InnoDB, MyISAM and Memory performance index evaluation MySQL storage engine selection comparison: InnoDB, MyISAM and Memory performance index evaluation Jul 26, 2023 am 11:25 AM

MySQL storage engine selection comparison: InnoDB, MyISAM and Memory performance index evaluation Introduction: In the MySQL database, the choice of storage engine plays a vital role in system performance and data integrity. MySQL provides a variety of storage engines, the most commonly used engines include InnoDB, MyISAM and Memory. This article will evaluate the performance indicators of these three storage engines and compare them through code examples. 1. InnoDB engine InnoDB is My

How to use MyISAM and InnoDB storage engines to optimize MySQL performance How to use MyISAM and InnoDB storage engines to optimize MySQL performance May 11, 2023 pm 06:51 PM

MySQL is a widely used database management system, and different storage engines have different impacts on database performance. MyISAM and InnoDB are the two most commonly used storage engines in MySQL. They have different characteristics and improper use may affect the performance of the database. This article will introduce how to use these two storage engines to optimize MySQL performance. 1. MyISAM storage engine MyISAM is the most commonly used storage engine for MySQL. Its advantages are fast speed and small storage space. MyISA

Tips and Strategies to Improve MySQL Storage Engine Read Performance: Comparative Analysis of MyISAM and InnoDB Tips and Strategies to Improve MySQL Storage Engine Read Performance: Comparative Analysis of MyISAM and InnoDB Jul 26, 2023 am 10:01 AM

Tips and strategies to improve the read performance of MySQL storage engine: Comparative analysis of MyISAM and InnoDB Introduction: MySQL is one of the most commonly used open source relational database management systems, mainly used to store and manage large amounts of structured data. In applications, the read performance of the database is often very important, because read operations are the main type of operations in most applications. This article will focus on how to improve the read performance of the MySQL storage engine, focusing on a comparative analysis of MyISAM and InnoDB, two commonly used storage engines.

MySQL storage engine performance comparison: MyISAM and InnoDB read and write performance comparison experiment MySQL storage engine performance comparison: MyISAM and InnoDB read and write performance comparison experiment Jul 25, 2023 pm 01:29 PM

MySQL storage engine performance comparison: MyISAM and InnoDB read and write performance comparison experiment Introduction: MySQL is a widely used relational database management system. It supports a variety of storage engines, the two most commonly used engines are MyISAM and InnoDB. This article will explore the read and write performance of these two storage engines and compare them through experiments. 1. Introduction to MyISAM engine The MyISAM engine is the default storage engine of MySQL and is widely used in early versions. it uses

Compare and contrast InnoDB and MyISAM storage engines (features, locking, transactions). Compare and contrast InnoDB and MyISAM storage engines (features, locking, transactions). Apr 08, 2025 am 12:03 AM

InnoDB is suitable for highly concurrency and transaction-intensive applications, while MyISAM is suitable for read-intensive applications. 1) InnoDB supports transaction and row-level locks, and is suitable for high-concurrency scenarios such as e-commerce platforms. 2) MyISAM does not support transactions, but reads fast, and is suitable for read-intensive applications such as blog systems.

How to improve MySQL performance with MyISAM index caching How to improve MySQL performance with MyISAM index caching May 11, 2023 pm 07:31 PM

MySQL is a widely used open source relational database management system. Good performance is crucial when dealing with huge data volumes. MyISAM index cache is a very important feature of MySQL, which can greatly improve the speed and performance of data reading. In this article, we will take a deep dive into how the MyISAM index cache works and how to configure and optimize the index cache to improve MySQL performance. What is MyISAM index cache? MyISAM is a storage index in MySQL

When would you choose InnoDB over MyISAM, and vice versa? When would you choose InnoDB over MyISAM, and vice versa? Apr 25, 2025 am 12:22 AM

The situations when choosing InnoDB instead of MyISAM include: 1) transaction support, 2) high concurrency environment, 3) high data consistency; conversely, the situation when choosing MyISAM includes: 1) mainly read operations, 2) no transaction support is required. InnoDB is suitable for applications that require high data consistency and transaction processing, such as e-commerce platforms, while MyISAM is suitable for read-intensive and transaction-free applications such as blog systems.

How to choose the appropriate MySQL storage engine? Compare the advantages and disadvantages of MyISAM and InnoDB How to choose the appropriate MySQL storage engine? Compare the advantages and disadvantages of MyISAM and InnoDB Jul 27, 2023 am 08:05 AM

How to choose the right MySQL storage engine? Compare the advantages and disadvantages of MyISAM and InnoDB Introduction: MySQL is currently the most popular and widely used relational database management system. In MySQL, we can choose different storage engines to manage data to meet different needs. This article will focus on two commonly used storage engines: MyISAM and InnoDB, and compare their advantages and disadvantages. By reading this article, you will understand how to choose the appropriate MySQL storage based on actual needs.

See all articles