Computer >> คอมพิวเตอร์ >  >> การเขียนโปรแกรม >> MySQL

เอ็นจิ้นการจัดเก็บข้อมูลคืออะไร และเราจะตรวจสอบรายการเอ็นจิ้นการจัดเก็บข้อมูลที่รองรับโดยการติดตั้ง MySQL ได้อย่างไร


อาจถูกกำหนดให้เป็นส่วนประกอบซอฟต์แวร์ที่ระบบจัดการฐานข้อมูล (DBMS) ใช้เพื่อจัดการการทำงานของ SQL ต่างๆ เช่น สร้าง อ่าน อัปเดต และลบข้อมูลออกจากฐานข้อมูล กล่าวอีกนัยหนึ่ง DBMS ใช้เพื่อจัดการข้อมูลในฐานข้อมูล เครื่องมือจัดเก็บข้อมูลที่ใช้กันอย่างแพร่หลายคือ InnoDB ซึ่งเป็นเอ็นจิ้นการจัดเก็บข้อมูลเริ่มต้นสำหรับ MySQL5.5 และเวอร์ชันที่สูงกว่า ก่อนหน้า MySQL5.5 เอ็นจิ้นการจัดเก็บข้อมูลเริ่มต้นคือ MyISAM

ด้วยความช่วยเหลือของคำสั่ง SHOW ENGINES เราสามารถตรวจสอบรายการเครื่องมือจัดเก็บข้อมูลที่รองรับโดยการติดตั้ง MySQL -

mysql> SHOW ENGINES\G
*************************** 1. row ***************************
      Engine: FEDERATED
     Support: NO
     Comment: Federated MySQL storage engine
Transactions: NULL
          XA: NULL
  Savepoints: NULL
*************************** 2. row ***************************
      Engine: MRG_MYISAM
     Support: YES
     Comment: Collection of identical MyISAM tables
Transactions: NO
          XA: NO
  Savepoints: NO
*************************** 3. row ***************************
      Engine: MyISAM
     Support: YES
     Comment: MyISAM storage engine
Transactions: NO
          XA: NO
  Savepoints: NO
*************************** 4. row ***************************
      Engine: BLACKHOLE
     Support: YES
     Comment: /dev/null storage engine (anything you write to it disappear
Transactions: NO
          XA: NO
  Savepoints: NO
*************************** 5. row ***************************
      Engine: CSV
     Support: YES
     Comment: CSV storage engine
Transactions: NO
          XA: NO
  Savepoints: NO
*************************** 6. row ***************************
      Engine: MEMORY
     Support: YES
     Comment: Hash based, stored in memory, useful for temporary tables
Transactions: NO
          XA: NO
  Savepoints: NO
*************************** 7. row ***************************
      Engine: ARCHIVE
     Support: YES
     Comment: Archive storage engine
Transactions: NO
          XA: NO
  Savepoints: NO
*************************** 8. row ***************************
      Engine: InnoDB
     Support: DEFAULT
     Comment: Supports transactions, row-level locking, and foreign keys
Transactions: YES
          XA: YES
  Savepoints: YES
*************************** 9. row ***************************
      Engine: PERFORMANCE_SCHEMA
     Support: YES
     Comment: Performance Schema
Transactions: NO
          XA: NO
  Savepoints: NO
9 rows in set (0.00 sec)