国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

MySQL高級篇(存儲引擎InnoDB、MyISAM、Memory)

這篇具有很好參考價值的文章主要介紹了MySQL高級篇(存儲引擎InnoDB、MyISAM、Memory)。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點(diǎn)擊"舉報違法"按鈕提交疑問。

目錄

1、存儲引擎簡介

1.1、查詢建表語句,默認(rèn)存儲引擎:InnoDB

1.2、查看當(dāng)前數(shù)據(jù)庫支持的存儲引擎

1.3、創(chuàng)建表,并指定存儲引擎

2、?存儲引擎-InnoDB介紹

2.1、存儲引擎特點(diǎn)

?3、MyISAM存儲引擎

?4、Memory存儲引擎

?5、InnoDB、MyISAM、Memory的區(qū)別

?6、存儲引擎的選擇


1、存儲引擎簡介

1.1、查詢建表語句,默認(rèn)存儲引擎:InnoDB

-- 查詢建表語句
show create table emp;

MySQL高級篇(存儲引擎InnoDB、MyISAM、Memory),MySQL高級篇,數(shù)據(jù)庫,存儲引擎,InnoDB,MyISAM,Memory

1.2、查看當(dāng)前數(shù)據(jù)庫支持的存儲引擎

-- 查看當(dāng)前數(shù)據(jù)庫支持的存儲引擎
show engines;

MySQL高級篇(存儲引擎InnoDB、MyISAM、Memory),MySQL高級篇,數(shù)據(jù)庫,存儲引擎,InnoDB,MyISAM,Memory

1.3、創(chuàng)建表,并指定存儲引擎

-- 創(chuàng)建表 my_myisam,并指定MYISAM存儲引擎
create table my_myisam
(
    id   int,
    name varchar(10)
) engine = MyISAM;

-- 創(chuàng)建表 my_memory,指定MEMORY存儲引擎
create table my_memory
(
    id   int,
    name varchar(10)
) engine = MEMORY;

2、?存儲引擎-InnoDB介紹

2.1、存儲引擎特點(diǎn)

  • 介紹:InnoDB是一種兼顧高可靠性和高性能的通用存儲引擎,在MySQL 5.5之后,InnoDB是默認(rèn)的MySQL存儲引擎。
  • 特點(diǎn):DML操作遵循ACID?原子性(Atomicity)、一致性(Consistency)、隔離性(Isolation)持久性(Durability)模型,支持 事務(wù) ;行級鎖,提高并發(fā)訪問性能;支持 外鍵 FOREIGN KEY約束,保證數(shù)據(jù)的完整性和正確性;
  • 文件:xxx.ibd:xxx代表的是表名,InnoDB引擎的每張表都會對應(yīng)這樣一個表空間文件,存儲該表的表結(jié)構(gòu)(frm、sdi)、數(shù)據(jù)和索引。參數(shù):innodb_file_per_table
  • 在InnoDB存儲引擎中,.ibd文件是表空間文件,用于存儲表的數(shù)據(jù)和索引。每個InnoDB表都有一個與之關(guān)聯(lián)的.ibd文件(除非該表被配置為使用共享表空間)。.ibd文件通常包含表的元數(shù)據(jù)、數(shù)據(jù)和索引信息。

    當(dāng)InnoDB存儲引擎的innodb_file_per_table配置選項(xiàng)被啟用時,每個InnoDB表都會有自己獨(dú)立的.ibd文件。這樣做的好處是,可以更容易地管理單個表的大小和存儲位置,例如,可以通過移動或刪除.ibd文件來移動或刪除表。

    .ibd文件相對應(yīng)的是.frm文件,它存儲了表的元數(shù)據(jù)(即表結(jié)構(gòu))。而InnoDB的系統(tǒng)表空間文件通常命名為ibdata1、ibdata2等,用于存儲undo日志、插入緩沖區(qū)、鎖信息等。

    在某些情況下,例如當(dāng)表損壞或需要優(yōu)化時,可能需要直接操作.ibd文件。但是,直接操作這些文件是危險的,應(yīng)該謹(jǐn)慎進(jìn)行,并在操作前備份相關(guān)數(shù)據(jù)。

show variables like 'innodb_file_per_table';

MySQL高級篇(存儲引擎InnoDB、MyISAM、Memory),MySQL高級篇,數(shù)據(jù)庫,存儲引擎,InnoDB,MyISAM,Memory

C:\ProgramData\MySQL\MySQL Server 8.0\Data

MySQL高級篇(存儲引擎InnoDB、MyISAM、Memory),MySQL高級篇,數(shù)據(jù)庫,存儲引擎,InnoDB,MyISAM,Memory

Microsoft Windows [版本 10.0.19045.3996]
(c) Microsoft Corporation。保留所有權(quán)利。

C:\ProgramData\MySQL\MySQL Server 8.0\Data\mybatis@002dexample>ibd2sdi t_book.ibd
["ibd2sdi"
,
{
        "type": 1,
        "id": 441,
        "object":
                {
    "mysqld_version_id": 80026,
    "dd_version": 80023,
    "sdi_version": 80019,
    "dd_object_type": "Table",
    "dd_object": {
        "name": "t_book",
        "mysql_version_id": 80026,
        "created": 20231209065441,
        "last_altered": 20231209065441,
        "hidden": 1,
        "options": "avg_row_length=0;encrypt_type=N;key_block_size=0;keys_disabled=0;pack_record=1;stats_auto_recalc=0;stats_sample_pages=0;",
        "columns": [
            {
                "name": "bid",
                "type": 16,
                "is_nullable": false,
                "is_zerofill": false,
                "is_unsigned": false,
                "is_auto_increment": false,
                "is_virtual": false,
                "hidden": 1,
                "ordinal_position": 1,
                "char_length": 80,
                "numeric_precision": 0,
                "numeric_scale": 0,
                "numeric_scale_null": true,
                "datetime_precision": 0,
                "datetime_precision_null": 1,
                "has_no_default": true,
                "default_value_null": false,
                "srs_id_null": true,
                "srs_id": 0,
                "default_value": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\nAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
                "default_value_utf8_null": true,
                "default_value_utf8": "",
                "default_option": "",
                "update_option": "",
                "comment": "",
                "generation_expression": "",
                "generation_expression_utf8": "",
                "options": "interval_count=0;",
                "se_private_data": "table_id=1162;",
                "engine_attribute": "",
                "secondary_engine_attribute": "",
                "column_key": 2,
                "column_type_utf8": "varchar(20)",
                "elements": [],
                "collation_id": 255,
                "is_explicit_collation": false
            },
            {
                "name": "bname",
                "type": 16,
                "is_nullable": true,
                "is_zerofill": false,
                "is_unsigned": false,
                "is_auto_increment": false,
                "is_virtual": false,
                "hidden": 1,
                "ordinal_position": 2,
                "char_length": 80,
                "numeric_precision": 0,
                "numeric_scale": 0,
                "numeric_scale_null": true,
                "datetime_precision": 0,
                "datetime_precision_null": 1,
                "has_no_default": false,
                "default_value_null": true,
                "srs_id_null": true,
                "srs_id": 0,
                "default_value": "",
                "default_value_utf8_null": true,
                "default_value_utf8": "",
                "default_option": "",
                "update_option": "",
                "comment": "",
                "generation_expression": "",
                "generation_expression_utf8": "",
                "options": "interval_count=0;",
                "se_private_data": "table_id=1162;",
                "engine_attribute": "",
                "secondary_engine_attribute": "",
                "column_key": 1,
                "column_type_utf8": "varchar(20)",
                "elements": [],
                "collation_id": 255,
                "is_explicit_collation": false
            },
            {
                "name": "stuid",
                "type": 16,
                "is_nullable": true,
                "is_zerofill": false,
                "is_unsigned": false,
                "is_auto_increment": false,
                "is_virtual": false,
                "hidden": 1,
                "ordinal_position": 3,
                "char_length": 80,
                "numeric_precision": 0,
                "numeric_scale": 0,
                "numeric_scale_null": true,
                "datetime_precision": 0,
                "datetime_precision_null": 1,
                "has_no_default": false,
                "default_value_null": true,
                "srs_id_null": true,
                "srs_id": 0,
                "default_value": "",
                "default_value_utf8_null": true,
                "default_value_utf8": "",
                "default_option": "",
                "update_option": "",
                "comment": "",
                "generation_expression": "",
                "generation_expression_utf8": "",
                "options": "interval_count=0;",
                "se_private_data": "table_id=1162;",
                "engine_attribute": "",
                "secondary_engine_attribute": "",
                "column_key": 4,
                "column_type_utf8": "varchar(20)",
                "elements": [],
                "collation_id": 255,
                "is_explicit_collation": false
            },
            {
                "name": "DB_TRX_ID",
                "type": 10,
                "is_nullable": false,
                "is_zerofill": false,
                "is_unsigned": false,
                "is_auto_increment": false,
                "is_virtual": false,
                "hidden": 2,
                "ordinal_position": 4,
                "char_length": 6,
                "numeric_precision": 0,
                "numeric_scale": 0,
                "numeric_scale_null": true,
                "datetime_precision": 0,
                "datetime_precision_null": 1,
                "has_no_default": false,
                "default_value_null": true,
                "srs_id_null": true,
                "srs_id": 0,
                "default_value": "",
                "default_value_utf8_null": true,
                "default_value_utf8": "",
                "default_option": "",
                "update_option": "",
                "comment": "",
                "generation_expression": "",
                "generation_expression_utf8": "",
                "options": "",
                "se_private_data": "table_id=1162;",
                "engine_attribute": "",
                "secondary_engine_attribute": "",
                "column_key": 1,
                "column_type_utf8": "",
                "elements": [],
                "collation_id": 63,
                "is_explicit_collation": false
            },
            {
                "name": "DB_ROLL_PTR",
                "type": 9,
                "is_nullable": false,
                "is_zerofill": false,
                "is_unsigned": false,
                "is_auto_increment": false,
                "is_virtual": false,
                "hidden": 2,
                "ordinal_position": 5,
                "char_length": 7,
                "numeric_precision": 0,
                "numeric_scale": 0,
                "numeric_scale_null": true,
                "datetime_precision": 0,
                "datetime_precision_null": 1,
                "has_no_default": false,
                "default_value_null": true,
                "srs_id_null": true,
                "srs_id": 0,
                "default_value": "",
                "default_value_utf8_null": true,
                "default_value_utf8": "",
                "default_option": "",
                "update_option": "",
                "comment": "",
                "generation_expression": "",
                "generation_expression_utf8": "",
                "options": "",
                "se_private_data": "table_id=1162;",
                "engine_attribute": "",
                "secondary_engine_attribute": "",
                "column_key": 1,
                "column_type_utf8": "",
                "elements": [],
                "collation_id": 63,
                "is_explicit_collation": false
            }
        ],
        "schema_ref": "mybatis-example",
        "se_private_id": 1162,
        "engine": "InnoDB",
        "last_checked_for_upgrade_version_id": 0,
        "comment": "",
        "se_private_data": "",
        "engine_attribute": "",
        "secondary_engine_attribute": "",
        "row_format": 2,
        "partition_type": 0,
        "partition_expression": "",
        "partition_expression_utf8": "",
        "default_partitioning": 0,
        "subpartition_type": 0,
        "subpartition_expression": "",
        "subpartition_expression_utf8": "",
        "default_subpartitioning": 0,
        "indexes": [
            {
                "name": "PRIMARY",
                "hidden": false,
                "is_generated": false,
                "ordinal_position": 1,
                "comment": "",
                "options": "flags=0;",
                "se_private_data": "id=289;root=4;space_id=101;table_id=1162;trx_id=10390;",
                "type": 1,
                "algorithm": 2,
                "is_algorithm_explicit": false,
                "is_visible": true,
                "engine": "InnoDB",
                "engine_attribute": "",
                "secondary_engine_attribute": "",
                "elements": [
                    {
                        "ordinal_position": 1,
                        "length": 80,
                        "order": 2,
                        "hidden": false,
                        "column_opx": 0
                    },
                    {
                        "ordinal_position": 2,
                        "length": 4294967295,
                        "order": 2,
                        "hidden": true,
                        "column_opx": 3
                    },
                    {
                        "ordinal_position": 3,
                        "length": 4294967295,
                        "order": 2,
                        "hidden": true,
                        "column_opx": 4
                    },
                    {
                        "ordinal_position": 4,
                        "length": 4294967295,
                        "order": 2,
                        "hidden": true,
                        "column_opx": 1
                    },
                    {
                        "ordinal_position": 5,
                        "length": 4294967295,
                        "order": 2,
                        "hidden": true,
                        "column_opx": 2
                    }
                ],
                "tablespace_ref": "mybatis-example/t_book"
            },
            {
                "name": "fk_book_stuid",
                "hidden": false,
                "is_generated": true,
                "ordinal_position": 2,
                "comment": "",
                "options": "flags=0;",
                "se_private_data": "id=290;root=5;space_id=101;table_id=1162;trx_id=10390;",
                "type": 3,
                "algorithm": 2,
                "is_algorithm_explicit": false,
                "is_visible": true,
                "engine": "InnoDB",
                "engine_attribute": "",
                "secondary_engine_attribute": "",
                "elements": [
                    {
                        "ordinal_position": 1,
                        "length": 80,
                        "order": 2,
                        "hidden": false,
                        "column_opx": 2
                    },
                    {
                        "ordinal_position": 2,
                        "length": 4294967295,
                        "order": 2,
                        "hidden": true,
                        "column_opx": 0
                    }
                ],
                "tablespace_ref": "mybatis-example/t_book"
            }
        ],
        "foreign_keys": [
            {
                "name": "fk_book_stuid",
                "match_option": 1,
                "update_rule": 1,
                "delete_rule": 1,
                "unique_constraint_name": "PRIMARY",
                "referenced_table_catalog_name": "def",
                "referenced_table_schema_name": "mybatis-example",
                "referenced_table_name": "t_stu",
                "elements": [
                    {
                        "column_opx": 2,
                        "ordinal_position": 1,
                        "referenced_column_name": "sid"
                    }
                ]
            }
        ],
        "check_constraints": [],
        "partitions": [],
        "collation_id": 255
    }
}
}
,
{
        "type": 2,
        "id": 106,
        "object":
                {
    "mysqld_version_id": 80026,
    "dd_version": 80023,
    "sdi_version": 80019,
    "dd_object_type": "Tablespace",
    "dd_object": {
        "name": "mybatis-example/t_book",
        "comment": "",
        "options": "autoextend_size=0;encryption=N;",
        "se_private_data": "flags=16417;id=101;server_version=80026;space_version=1;state=normal;",
        "engine": "InnoDB",
        "engine_attribute": "",
        "files": [
            {
                "ordinal_position": 1,
                "filename": ".\\mybatis@002dexample\\t_book.ibd",
                "se_private_data": "id=101;"
            }
        ]
    }
}
}
]

C:\ProgramData\MySQL\MySQL Server 8.0\Data\mybatis@002dexample>

MySQL高級篇(存儲引擎InnoDB、MyISAM、Memory),MySQL高級篇,數(shù)據(jù)庫,存儲引擎,InnoDB,MyISAM,Memory

?3、MyISAM存儲引擎

  • 介紹:MyISAM是MySQL早期的默認(rèn)存儲引擎
  • 特點(diǎn):不支持事務(wù),不支持外鍵;支持表鎖,不支持行鎖;訪問速度快
  • 文件:xxx.sdi:存儲表結(jié)構(gòu)信息;xxx.MYD:存儲數(shù)據(jù);xxx.MYI:存儲索引

MySQL高級篇(存儲引擎InnoDB、MyISAM、Memory),MySQL高級篇,數(shù)據(jù)庫,存儲引擎,InnoDB,MyISAM,Memory

https://www.json.cn/

MySQL高級篇(存儲引擎InnoDB、MyISAM、Memory),MySQL高級篇,數(shù)據(jù)庫,存儲引擎,InnoDB,MyISAM,Memory

?MySQL高級篇(存儲引擎InnoDB、MyISAM、Memory),MySQL高級篇,數(shù)據(jù)庫,存儲引擎,InnoDB,MyISAM,Memory

?4、Memory存儲引擎

  • 介紹:Memory引擎的表數(shù)據(jù)時存儲在內(nèi)存中的,由于受到硬件問題、或斷電問題的影響,只能將這些表作為臨時表或緩存使用。
  • 特點(diǎn):內(nèi)存存放;hash索引(默認(rèn))
  • 文件:xxx.sdi:存儲表結(jié)構(gòu)信息

MySQL高級篇(存儲引擎InnoDB、MyISAM、Memory),MySQL高級篇,數(shù)據(jù)庫,存儲引擎,InnoDB,MyISAM,Memory

?5、InnoDB、MyISAM、Memory的區(qū)別

MySQL高級篇(存儲引擎InnoDB、MyISAM、Memory),MySQL高級篇,數(shù)據(jù)庫,存儲引擎,InnoDB,MyISAM,Memory

?6、存儲引擎的選擇

MySQL高級篇(存儲引擎InnoDB、MyISAM、Memory),MySQL高級篇,數(shù)據(jù)庫,存儲引擎,InnoDB,MyISAM,Memory文章來源地址http://www.zghlxwxcb.cn/news/detail-847799.html

  • InnoDB用于大多數(shù)業(yè)務(wù)場景
  • MyISAM用于業(yè)務(wù)系統(tǒng)中的日志相關(guān)的數(shù)據(jù),電商當(dāng)中足跡和評論相關(guān)的數(shù)據(jù),已經(jīng)被?MongoDB 取代
  • MEMORY用于緩存,已經(jīng)被 redis 取代

到了這里,關(guān)于MySQL高級篇(存儲引擎InnoDB、MyISAM、Memory)的文章就介紹完了。如果您還想了解更多內(nèi)容,請?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點(diǎn)僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實(shí)不符,請點(diǎn)擊違法舉報進(jìn)行投訴反饋,一經(jīng)查實(shí),立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

  • MySQL ?持哪些存儲引擎?默認(rèn)使?哪個?MyISAM 和 InnoDB 引擎有什么區(qū)別,如何選擇?

    MySQL ?持哪些存儲引擎?默認(rèn)使?哪個?MyISAM 和 InnoDB 引擎有什么區(qū)別,如何選擇?

    ???????????????? ?? M y S Q L ?持哪些存儲引擎?默認(rèn)使?哪個? M y I S A M 和 I n n o D B 引擎有什么區(qū)別,如何選擇? color{#FF1493}{MySQL ?持哪些存儲引擎?默認(rèn)使?哪個?MyISAM 和 InnoDB 引擎有什么區(qū)別,如何選擇?} M y SQ L ? 持哪些存儲引擎?默認(rèn)使 ? 哪個? M y I

    2024年02月09日
    瀏覽(28)
  • MyISAM和InnoDB存儲引擎的區(qū)別

    MyISAM和InnoDB存儲引擎的區(qū)別

    MyISAM和InnoDB是使用MySQL最常用的兩種存儲引擎, 在5.5版本之前默認(rèn)采用MyISAM存儲引擎,從5.5開始采用InnoDB存儲引擎。 存儲引擎是:數(shù)據(jù)庫管理系統(tǒng)如何存儲數(shù)據(jù)、如何為存儲的數(shù)據(jù)建立索引和如何更新、查詢數(shù)據(jù)等技術(shù)的實(shí)現(xiàn)方法。 MySQL的核心就是插件式存儲引擎, 支持多

    2024年01月21日
    瀏覽(20)
  • MySQL高級10-InnoDB引擎存儲架構(gòu)

    MySQL高級10-InnoDB引擎存儲架構(gòu)

    表空間(Tablespace):一個mysql實(shí)例,及一個數(shù)據(jù)庫實(shí)例,可以對應(yīng)多個表空間(ibd文件),用于存儲記錄,索引等數(shù)據(jù)。 段(Segment):分為數(shù)據(jù)段(Leaf node segment)、索引段(Non-leaf node segment)、回滾段(Rollback segment),InnoDB是索引組織表,數(shù)據(jù)段就是B+樹的葉子節(jié)點(diǎn)(Leaf node segment),

    2024年02月08日
    瀏覽(23)
  • 【MySQL高級】——InnoDB索引&MyISAM索引

    【MySQL高級】——InnoDB索引&MyISAM索引

    ??MySQL官方對索引的定義為:索引(Index)是幫助MySQL高效獲取數(shù)據(jù)的數(shù)據(jù)結(jié)構(gòu)。 索引的本質(zhì):索引是數(shù)據(jù)結(jié)構(gòu)。你可以簡單理解為“排好序的快速查找數(shù)據(jù)結(jié)構(gòu)”,滿足特定查找算法。 這些數(shù)據(jù)結(jié)構(gòu)以某種方式指向數(shù)據(jù), 這樣就可以在這些數(shù)據(jù)結(jié)構(gòu)的基礎(chǔ)上實(shí)現(xiàn) 高級查找

    2023年04月27日
    瀏覽(20)
  • MySQL架構(gòu) & InnoDB存儲引擎

    MySQL架構(gòu) & InnoDB存儲引擎

    我們在開發(fā)的時候,我們都需要對業(yè)務(wù)數(shù)據(jù)進(jìn)行存儲,這個時候,你們就會用到MySQL 、O racal 等數(shù)據(jù)庫。 MySQL它是一個關(guān)系型數(shù)據(jù)庫, 這種關(guān)系型數(shù)據(jù)庫就有Oracal 、 MySQL,以及最近很火的PgSQL 等。 那什么是關(guān)系型數(shù)據(jù)庫呢? 就是它是 基于我們的SQL語句去執(zhí)行操作的 。 其實(shí)

    2024年02月07日
    瀏覽(59)
  • MySQL—MySQL的存儲引擎之InnoDB

    MySQL—MySQL的存儲引擎之InnoDB

    存儲引擎 說明 MyISAM 高速引擎,擁有較高的插入,查詢速度,但不支持事務(wù) InnoDB 5.5版本后MySQL的默認(rèn)數(shù)據(jù)庫存儲引擎,支持事務(wù)和行級鎖,比MyISAM處理速度稍慢 ISAM MyISAM的前身,MySQL5.0以后不再默認(rèn)安裝 MRG_MyISAM 將多個表聯(lián)合成一個表使用,在超大規(guī)模數(shù)據(jù)存儲時很有用 Me

    2024年04月26日
    瀏覽(24)
  • MySQL 的 InnoDB 存儲引擎簡介

    MySQL 的 InnoDB 存儲引擎簡介

    MySQL 是世界上最流行的開源關(guān)系型數(shù)據(jù)庫管理系統(tǒng)之一,而其中的存儲引擎則是其關(guān)鍵組成部分之一。InnoDB 存儲引擎在 MySQL 中扮演了重要角色,提供了許多高級功能和性能優(yōu)化,適用于各種應(yīng)用程序和工作負(fù)載。本文將深入介紹 InnoDB 存儲引擎的各個方面,以幫助您更好地理

    2024年02月08日
    瀏覽(30)
  • 談?wù)凪ySQL的InnoDB存儲引擎

    談?wù)凪ySQL的InnoDB存儲引擎

    大家好,我是易安! 今天我們談一談MySQL中InnoDB存儲引擎。InnoDB存儲引擎作為我們最常用到的存儲引擎之一,充分熟悉它的的實(shí)現(xiàn)和運(yùn)行原理,有助于我們更好地創(chuàng)建和維護(hù)數(shù)據(jù)庫表。 InnoDB主要包括了內(nèi)存池、后臺線程以及存儲文件。內(nèi)存池又是由多個內(nèi)存塊組成的,主要包

    2024年02月03日
    瀏覽(20)
  • mysql--InnoDB存儲引擎--架構(gòu)和事務(wù)

    mysql--InnoDB存儲引擎--架構(gòu)和事務(wù)

    MySQL進(jìn)階篇 InnoDB 邏輯存儲單元主層級關(guān)系圖: 1、表空間 表空間是InnoDB存儲引擎邏輯結(jié)構(gòu)的最高層, 如果用戶啟用了參數(shù) innodb_file_per_table(在 8.0版本中默認(rèn)開啟) ,則每張表都會有一個表空間(xxx.ibd),一個mysql實(shí)例可以對應(yīng)多個表空間,用于存儲記錄、索引等數(shù)據(jù)。 2、段

    2024年02月14日
    瀏覽(21)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包