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

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 ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Two Point Museum: All Exhibits And Where To Find Them
1 months 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)

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

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

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.

Comparative analysis of InnoDB and MyISAM in MySQL Comparative analysis of InnoDB and MyISAM in MySQL Jun 02, 2023 pm 04:16 PM

Comparing InnoDB and MyISAM1, storage structure MyISAM: Each MyISAM is stored as three files on the disk. They are: table definition files, data files, and index files. The name of the first file begins with the name of the table, and the extension indicates the file type. .frm files store table definitions. The extension of the data file is .MYD (MYData). The extension of the index file is .MYI (MYIndex). InnoDB: All tables are stored in the same data file (or multiple files, or independent table space files). The size of the InnoDB table is only limited by the size of the operating system file, which is generally 2GB. 2. Storage space MyISAM: MyISAM supports

Explore the performance optimization strategies of MySQL MyISAM engine Explore the performance optimization strategies of MySQL MyISAM engine Jul 25, 2023 pm 12:16 PM

Exploring the performance optimization strategies of MySQL MyISAM engine Introduction: In the MySQL database, the MyISAM engine is one of the commonly used database engines. It is widely used in various database applications due to its simplicity, ease of management and high performance. However, as the amount of database data continues to grow and the complexity of query access increases, the performance optimization of the MyISAM engine becomes very important. This article will discuss the performance optimization strategy of the MyISAM engine and illustrate it through example code. 1. Use correct

See all articles