sql >> Databasteknik >  >> RDS >> Mysql

Vad är MySQL-databasmotorer?

mysql> SHOW ENGINES;
+------------+---------+----------------------------------------------------------------+--------------+------+------------+
| Engine     | Support | Comment                                                        | Transactions | XA   | Savepoints |
+------------+---------+----------------------------------------------------------------+--------------+------+------------+
| InnoDB     | YES     | Supports transactions, row-level locking, and foreign keys     | YES          | YES  | YES        |
| MRG_MYISAM | YES     | Collection of identical MyISAM tables                          | NO           | NO   | NO         |
| BLACKHOLE  | YES     | /dev/null storage engine (anything you write to it disappears) | NO           | NO   | NO         |
| CSV        | YES     | CSV storage engine                                             | NO           | NO   | NO         |
| MEMORY     | YES     | Hash based, stored in memory, useful for temporary tables      | NO           | NO   | NO         |
| FEDERATED  | NO      | Federated MySQL storage engine                                 | NULL         | NULL | NULL       |
| ARCHIVE    | YES     | Archive storage engine                                         | NO           | NO   | NO         |
| MyISAM     | DEFAULT | Default engine as of MySQL 3.23 with great performance         | NO           | NO   | NO         |
+------------+---------+----------------------------------------------------------------+--------------+------+------------+

Jag personligen använder alltid InnoDB om jag måste använda MySQL. Den stöder transaktions- och främmande nycklar medan MyISAM inte gör det.



  1. mysql_connect():Ingen anslutning kunde göras eftersom målmaskinen aktivt vägrade det

  2. SQLite JSON_EACH()

  3. 25 Microsoft Access-genvägar för att spara tid i tabeller i databladsvy

  4. MySQL - explodera/dela ​​indata till lagrad procedur