简体   繁体   English

.mdf等价于mysql(TOAD)

[英].mdf equivalent for mysql (TOAD)

What is 'SQL Server Database Primary Data File (.mdf)' equivalent for mysql. 什么是mysql的“ SQL Server数据库主数据文件(.mdf)”等效项。

  • I am using 'Toad for mysql' (Vesion 7.7) tool 我正在使用“ Toad for mysql”(版本7.7)工具

Assuming that you are using MyISAM engine it should be *.myd extension file which corresponds to data file and *.frm corresponds to table format file. 假设您正在使用MyISAM引擎,则它应该是*.myd扩展名文件,它对应于数据文件,而*.frm对应于表格式文件。

Per MySQL Documentation 根据MySQL文档

Regardless of the storage engine you choose, every MySQL table you create is represented on disk by a .frm file that describes the table's format (that is, the table definition). 无论选择哪种存储引擎,创建的每个MySQL表都在磁盘上以.frm文件表示,该文件描述了表的格式(即表定义)。 The file bears the same name as the table, with an .frm extension. 该文件与表具有相同的名称,扩展名为.frm。 The .frm format is the same on all platforms, but in the description of the .frm format that follows, the examples come from tables created under the Linux operating system. .frm格式在所有平台上都相同,但是在随后的.frm格式的说明中,示例来自在Linux操作系统下创建的表。

Since MySQL comes with an extendable table engine model, there is no straight answer to this question, since each table engine has different file formats. 由于MySQL带有可扩展的表引擎模型,因此没有一个直接的答案,因为每个表引擎都有不同的文件格式。

The only file type that is independent of table engines, is the table definition file (*.frm). 与表引擎无关的唯一文件类型是表定义文件(* .frm)。

Actual data and indexes are stored by different table engines in different ways. 实际数据和索引由不同的表引擎以不同的方式存储。 Even within a single table engine, there may be different ways to store data (eg in innodb the data can be stored in large tablespace files, or each table may have its own files). 即使在单个表引擎中,也可能有不同的方式来存储数据(例如,在innodb中,数据可以存储在大表空间文件中,或者每个表可以具有自己的文件)。 You have to check out each storage engine's own documentation on how it stores the data. 您必须查看每个存储引擎自己的文档以了解如何存储数据。

Much of the metadata is stored in the mysql system database, which is a myisam database. 许多元数据存储在mysql系统数据库(myisam数据库)中。 The other metadata schemas (information_schema, performance, sys) are constructed on-the-fly by MySQL as temporary memory tables (you can check with show create table command). 其他元数据模式(information_schema,perform,sys)是由MySQL作为临时内存表(您可以使用show create table命令检查)动态构建的。

Some of 一些

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM