[英]How to find out if which type of mysql I am using in Linux, MyISAM and InnoDB ?
I am using CentOs. 我正在使用CentOs。 And I installed mysqld using the yum install mysql mysql-server
but, now I would like to know which type of mysql I am using ie "MyISAM and InnoDB" 我使用yum install mysql mysql-server
安装mysqld但是,现在我想知道我使用的是哪种类型的mysql,即“MyISAM和InnoDB”
I have tried service mysqld status
or mysql -u root -p pass
they, don't display this information. 我试过service mysqld status
或mysql -u root -p pass
它们,不显示这些信息。 Is there a way to find out ? 有没有办法找出来?
Start mysql
and do: 启动mysql
并执行:
mysql> show engines;
+--------------------+---------+----------------------------------------------------------------+--------------+------+------------+
| Engine | Support | Comment | Transactions | XA | Savepoints |
+--------------------+---------+----------------------------------------------------------------+--------------+------+------------+
| PERFORMANCE_SCHEMA | YES | Performance Schema | NO | NO | NO |
| CSV | YES | CSV storage engine | NO | NO | NO |
| 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 |
| MyISAM | DEFAULT | MyISAM storage engine | NO | NO | NO |
| InnoDB | YES | Supports transactions, row-level locking, and foreign keys | YES | YES | YES |
| ARCHIVE | YES | Archive 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 |
+--------------------+---------+----------------------------------------------------------------+--------------+------+------------+
9 rows in set (0.00 sec)
This shows what storage engines you have available, and which is the default. 这显示了您可用的存储引擎,以及默认存储引擎。
You can get the supported storage engines with SHOW ENGINES . 您可以使用SHOW ENGINES获得支持的存储引擎。
If you want to know which table uses which storage engine, you can use SHOW TABLES 如果您想知道哪个表使用哪个存储引擎,可以使用SHOW TABLES
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.