The difference between mysql and myisam is: mysql is a relational database management system. It is a database based on the relational model. It uses mathematical concepts and methods such as set algebra to process data in the database, while myisam It is the default database engine of mysql (before version 5.5) and does not support transaction processing.

The operating environment of this tutorial: windows10 system, mysql8.0.22 version, Dell G3 computer.
What is the difference between mysql and myisam
myisam
MySQL’s default database engine
MyISAM is the default database engine of MySQL (before version 5.5), which was improved from the early ISAM. Although the performance is excellent, it has a disadvantage: it does not support transaction processing. However, with the development in the past few years, MySQL has also introduced InnoDB (another database engine) to strengthen the referential integrity and concurrency violation handling mechanism, and later gradually replaced MyISAM.
Each MyISAM data table is composed of 3 files stored on the hard disk. Each file has the data table name as the main name of the file, and is matched with different extensions to distinguish the file type:
.frm - stores data table definitions. This file is not part of the MyISAM engine.
.MYD——Stores the real data.
.MYI——Storage index information.
Comparison with InnoDB
InnoDB can use transaction log files (Transaction Log) to recover from program crashes (crash), or unexpected The data error caused by the end; and MyISAM encounters an error and must be completely scanned before rebuilding the index, or correcting the error that was not written to the hard disk. InnoDB's repair time is roughly fixed, but MyISAM's repair time is proportional to the amount of data. Relatively speaking, as the amount of data increases, InnoDB will have better stability.
MyISAM must rely on the operating system to manage the read and write cache, while InnoDB has its own read and write cache management mechanism. (InnoDB will not immediately hand over the modified data pages to the operating system) Therefore, in some cases, InnoDB's data access will be more efficient than MyISAM.
InnoDB currently does not support the compression and terse row formats provided by MyISAM, so it uses a large amount of hard disk and cache. Therefore, starting from version 5.0, MySQL provides another format with a lighter load, which can reduce the system load by about 20%, and the compression function has been planned to be launched in a future new version.
When the operation is fully compatible with ACID (transaction), although InnoDB will automatically merge multiple connections, each time a transaction occurs, it still must be written to the hard disk at least once. Therefore, for some hard disks or disk arrays, This will result in a transaction processing limit of 200 per second. If you want to achieve higher performance and maintain transaction integrity, you must use disk caching and battery backup. Of course, InnoDB also provides several modes that have a lower impact on performance, but they will also reduce the integrity of transactions. MyISAM does not have this problem, but this is not because it is more advanced, it is just because it does not support transactions.
mysql
MySQL is a relational database management system developed by the Swedish MySQL AB company and is currently a product of Oracle. MySQL is one of the most popular relational database management systems. In terms of WEB applications, MySQL is one of the best RDBMS (Relational Database Management System) application software.
MySQL is a relational database management system. A relational database stores data in different tables instead of placing all data in one large warehouse, which increases speed and flexibility.
The SQL language used by MySQL is the most commonly used standardized language for accessing databases. MySQL software adopts a dual licensing policy and is divided into community version and commercial version. Due to its small size, fast speed, low total cost of ownership, and especially the characteristics of open source, MySQL is generally chosen as the website database for the development of small and medium-sized websites.
Due to the excellent performance of its community version, it can form a good development environment with PHP and Apache.
Recommended learning: mysql video tutorial
The above is the detailed content of What is the difference between mysql and myisam. For more information, please follow other related articles on the PHP Chinese website!
MySQL's Role: Databases in Web ApplicationsApr 17, 2025 am 12:23 AMThe main role of MySQL in web applications is to store and manage data. 1.MySQL efficiently processes user information, product catalogs, transaction records and other data. 2. Through SQL query, developers can extract information from the database to generate dynamic content. 3.MySQL works based on the client-server model to ensure acceptable query speed.
MySQL: Building Your First DatabaseApr 17, 2025 am 12:22 AMThe steps to build a MySQL database include: 1. Create a database and table, 2. Insert data, and 3. Conduct queries. First, use the CREATEDATABASE and CREATETABLE statements to create the database and table, then use the INSERTINTO statement to insert the data, and finally use the SELECT statement to query the data.
MySQL: A Beginner-Friendly Approach to Data StorageApr 17, 2025 am 12:21 AMMySQL is suitable for beginners because it is easy to use and powerful. 1.MySQL is a relational database, and uses SQL for CRUD operations. 2. It is simple to install and requires the root user password to be configured. 3. Use INSERT, UPDATE, DELETE, and SELECT to perform data operations. 4. ORDERBY, WHERE and JOIN can be used for complex queries. 5. Debugging requires checking the syntax and use EXPLAIN to analyze the query. 6. Optimization suggestions include using indexes, choosing the right data type and good programming habits.
Is MySQL Beginner-Friendly? Assessing the Learning CurveApr 17, 2025 am 12:19 AMMySQL is suitable for beginners because: 1) easy to install and configure, 2) rich learning resources, 3) intuitive SQL syntax, 4) powerful tool support. Nevertheless, beginners need to overcome challenges such as database design, query optimization, security management, and data backup.
Is SQL a Programming Language? Clarifying the TerminologyApr 17, 2025 am 12:17 AMYes,SQLisaprogramminglanguagespecializedfordatamanagement.1)It'sdeclarative,focusingonwhattoachieveratherthanhow.2)SQLisessentialforquerying,inserting,updating,anddeletingdatainrelationaldatabases.3)Whileuser-friendly,itrequiresoptimizationtoavoidper
Explain the ACID properties (Atomicity, Consistency, Isolation, Durability).Apr 16, 2025 am 12:20 AMACID attributes include atomicity, consistency, isolation and durability, and are the cornerstone of database design. 1. Atomicity ensures that the transaction is either completely successful or completely failed. 2. Consistency ensures that the database remains consistent before and after a transaction. 3. Isolation ensures that transactions do not interfere with each other. 4. Persistence ensures that data is permanently saved after transaction submission.
MySQL: Database Management System vs. Programming LanguageApr 16, 2025 am 12:19 AMMySQL is not only a database management system (DBMS) but also closely related to programming languages. 1) As a DBMS, MySQL is used to store, organize and retrieve data, and optimizing indexes can improve query performance. 2) Combining SQL with programming languages, embedded in Python, using ORM tools such as SQLAlchemy can simplify operations. 3) Performance optimization includes indexing, querying, caching, library and table division and transaction management.
MySQL: Managing Data with SQL CommandsApr 16, 2025 am 12:19 AMMySQL uses SQL commands to manage data. 1. Basic commands include SELECT, INSERT, UPDATE and DELETE. 2. Advanced usage involves JOIN, subquery and aggregate functions. 3. Common errors include syntax, logic and performance issues. 4. Optimization tips include using indexes, avoiding SELECT* and using LIMIT.


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

SublimeText3 English version
Recommended: Win version, supports code prompts!

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

SublimeText3 Chinese version
Chinese version, very easy to use

SublimeText3 Mac version
God-level code editing software (SublimeText3)







