티스토리 뷰

DataBase

[MySQL] MySQL 스토리지 엔진

메성 2020. 2. 17. 00:26
반응형

MySQL 스토리지 엔진

  • 데이터베이스의 엔진으로, DB에 대해 데이터를 CRUD를 사용하는 기본 소프트웨어 컴포넌트이다.
  • 즉, 데이터를 직접적으로 다루는 역할을 하는 것을 말하며, InnoDB가 가장 기본적이고 가장 범용적이다.

 

 

서버에서 지원하는 스토리지 엔진

서버에서 지원하는 스토리지 엔진을 확인하려면 SHOW ENGINES 명령어를 사용하면 된다.

SHOW ENGINES\G

*************************** 1. row ***************************
      Engine: PERFORMANCE_SCHEMA
     Support: YES
     Comment: Performance Schema
Transactions: NO
          XA: NO
  Savepoints: NO
*************************** 2. row ***************************
      Engine: InnoDB
     Support: DEFAULT
     Comment: Supports transactions, row-level locking, and foreign keys
Transactions: YES
          XA: YES
  Savepoints: YES
*************************** 3. row ***************************
      Engine: MRG_MYISAM
     Support: YES
     Comment: Collection of identical MyISAM tables
Transactions: NO
          XA: NO
  Savepoints: NO
*************************** 4. row ***************************
      Engine: BLACKHOLE
     Support: YES
     Comment: /dev/null storage engine (anything you write to it disappears)
Transactions: NO
          XA: NO
  Savepoints: NO
*************************** 5. row ***************************
      Engine: MyISAM
     Support: YES
     Comment: MyISAM storage engine
Transactions: NO
          XA: NO
  Savepoints: NO
  • Support : 엔진을 사용할 수 있는지 여부를 나타낸다.
    • YES, NO, DEFAULT

 

각 스토리지 엔진의 기능

Feature MyISAM Memory InnoDB Archive NDB
B-tree indexes Yes Yes Yes No No
Backup/point-in-time recovery (note 1) Yes Yes Yes Yes Yes
Cluster database support No No No No Yes
Clustered indexes No No Yes No No
Compressed data Yes (note 2) No Yes Yes No
Data caches No N/A Yes No Yes
Encrypted data Yes (note 3) Yes (note 3) Yes (note 4) Yes (note 3) Yes (note 3)
Foreign key support No No Yes No Yes (note 5)
Full-text search indexes Yes No Yes (note 6) No No
Geospatial data type support Yes No Yes Yes Yes
Geospatial indexing support Yes No Yes (note 7) No No
Hash indexes No Yes No (note 8) No Yes
Index caches Yes N/A Yes No Yes
Locking granularity Table Table Row Row Row
MVCC No No Yes No No
Replication support (note 1) Yes Limited (note 9) Yes Yes Yes
Storage limits 256TB RAM 64TB None 384EB
T-tree indexes No No No No Yes
Transactions No No Yes No Yes
Update statistics for data dictionary Yes Yes Yes Yes Yes
반응형

'DataBase' 카테고리의 다른 글

[MySQL] InnoDB  (0) 2020.02.17
[MySQL] MyISAM  (0) 2020.02.17
리두와 언두의 동작  (0) 2019.12.09
오라클의 대기와 락  (0) 2019.12.09
오라클의 데이터 구조  (0) 2019.12.09
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함