【问题标题】:what are the main differences between all the mysql engines?所有mysql引擎之间的主要区别是什么?
【发布时间】:2013-03-18 21:54:04
【问题描述】:

我想总结一下所有 Mysql 引擎之间的主要区别,当然还有最受欢迎的引擎。

我应该使用什么标准来确定使用哪个引擎?

【问题讨论】:

  • “我应该使用什么标准来确定使用哪个引擎?” - 这不取决于您的具体要求吗?
  • 他在问如何来确定他应该使用哪个引擎,而不是他应该使用哪个引擎。这是一个完全有效的问题。

标签: mysql


【解决方案1】:

这里对它们进行了很好的描述:

http://dev.mysql.com/doc/refman/5.0/en/storage-engines.html

如果您有疑问,请使用 InnoDB。它是通用的,性能很好。

【讨论】:

    【解决方案2】:

    正如 Lars D 所说,这里对此进行了很好的描述:

    http://dev.mysql.com/doc/refman/5.0/en/storage-engines.html

    此数据来自上面给出的链接,可能会对您有所帮助...

    *************************** 1. row ***************************
     Engine: MyISAM
    Support: DEFAULT
    Comment: Default engine as of MySQL 3.23 with great performance
    *************************** 2. row ***************************
     Engine: MEMORY
    Support: YES
    Comment: Hash based, stored in memory, useful for temporary tables
    *************************** 3. row ***************************
     Engine: HEAP
    Support: YES
    Comment: Alias for MEMORY
    *************************** 4. row ***************************
     Engine: MERGE
    Support: YES
    Comment: Collection of identical MyISAM tables
    *************************** 5. row ***************************
     Engine: MRG_MYISAM
    Support: YES
    Comment: Alias for MERGE
    *************************** 6. row ***************************
     Engine: ISAM
    Support: NO
    Comment: Obsolete storage engine, now replaced by MyISAM
    *************************** 7. row ***************************
     Engine: MRG_ISAM
    Support: NO
    Comment: Obsolete storage engine, now replaced by MERGE
    *************************** 8. row ***************************
     Engine: InnoDB
    Support: YES
    Comment: Supports transactions, row-level locking, and foreign keys
    *************************** 9. row ***************************
     Engine: INNOBASE
    Support: YES
    Comment: Alias for INNODB
    *************************** 10. row ***************************
     Engine: BDB
    Support: YES
    Comment: Supports transactions and page-level locking
    *************************** 11. row ***************************
     Engine: BERKELEYDB
    Support: YES
    Comment: Alias for BDB
    *************************** 12. row ***************************
     Engine: NDBCLUSTER
    Support: NO
    Comment: Clustered, fault-tolerant, memory-based tables
    *************************** 13. row ***************************
     Engine: NDB
    Support: NO
    Comment: Alias for NDBCLUSTER
    *************************** 14. row ***************************
     Engine: EXAMPLE
    Support: NO
    Comment: Example storage engine
    *************************** 15. row ***************************
     Engine: ARCHIVE
    Support: YES
    Comment: Archive storage engine
    *************************** 16. row ***************************
     Engine: CSV
    Support: NO
    Comment: CSV storage engine
    *************************** 17. row ***************************
     Engine: FEDERATED
    Support: YES
    Comment: Federated MySQL storage engine
    *************************** 18. row ***************************
     Engine: BLACKHOLE
    Support: YES
    Comment: /dev/null storage engine (anything you write to it disappears)
    

    【讨论】:

      【解决方案3】:

      你应该看看手册,就像 Lars 和 Phil 说的那样。

      虽然,我可以简单地告诉你,主引擎(MyISAM 和 innoDB)之间的区别在于事务支持、foraing 键支持、锁定级别(MyISAM 锁定整个表,innoDB 具有行级锁定)和 MVCC .他们之间有太多的不同。我建议你看看:Pro MySQL Apress 2005。

      -- 圣地亚哥·巴苏尔托。-

      【讨论】:

        猜你喜欢
        • 2014-06-16
        • 2015-08-22
        • 2015-08-06
        • 2011-03-06
        • 2013-12-23
        • 2017-04-28
        • 2011-04-14
        • 2010-09-17
        • 2021-11-30
        相关资源
        最近更新 更多