Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to query the engine of mysql

2025-01-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly explains "how to query the engine of mysql". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to query the engine of mysql".

Query mysql engine method: 1, use the "show engines;" command, you can query mysql has provided which engines; 2, use the "show variables like'% storage_engine%';" command, you can query the current default engine of mysql.

The operating environment of this tutorial: windows7 system, mysql8 version, Dell G3 computer.

In general, mysql provides a variety of storage engines by default, which you can view by:

See what storage engine your mysql now offers:

Mysql > show engines

Take a look at your mysql's current default storage engine:

Mysql > show variables like'% storage_engine%'

You need to see which engine is used for a table (the storage engine currently used for the table is indicated by the parameter engine in the display results):

Mysql > show create table table name

Expand knowledge:

Mysql's storage engines include:

MyISAM, InnoDB, BDB, MEMORY, MERGE, EXAMPLE, NDBCluster, ARCHIVE, CSV, BLACKHOLE, FEDERATED, etc., where InnoDB and BDB provide transaction security tables, and other storage engines are non-transaction security tables.

The two most commonly used storage engines:

1. Myisam is the default storage engine for Mysql. When create creates a new table, Myisam is used by default when the storage engine for the new table is not specified. Each MyISAM is stored as three files on disk. The file name is the same as the table name, with .frm (storage table definition), .MYD (MYData, storage data), and .MYI (MYIndex, storage index). Data files and index files can be placed in different directories, evenly distributed io, for faster speed.

2. The InnoDB storage engine provides transaction security with commit, rollback and crash recovery capabilities. But compared to Myisam's storage engine, InnoDB writes are less efficient and take up more disk space to retain data and indexes.

Thank you for your reading, the above is the content of "how to query the engine of mysql", after the study of this article, I believe you have a deeper understanding of how to query the engine of mysql, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report