14.1.3 Checking InnoDB Availability

To determine whether your server supports InnoDB:
確定您的服務器是否支持InnoDB:

  • Issue the SHOW ENGINES statement to view the available MySQL storage engines. Look for DEFAULT in the InnoDB line.
  • 執行SHOW ENGINES 語句以查看可用的 MySQL 存儲引擎。在 InnoDB 行中查找DEFAULT值。
    mysql> SHOW ENGINES;

Alternatively, query the INFORMATION_SCHEMA.ENGINES table.
另外,也去查詢INFORMATION_SCHEMA.ENGINES 表
mysql> SELECT * FROM INFORMATION_SCHEMA.ENGINES;

(Now that InnoDB is the default MySQL storage engine, only very specialized environments might not support it.)
(現在innoddb是mysql的默認存儲引擎,只有在特別特殊的環境纔不支持它)

  • Issue a SHOW VARIABLES statement to confirm that InnoDB is available.
  • 執行一個SHOW VARIABLES語句以確認InnoDB是否是可用的。
    mysql> SHOW VARIABLES LIKE 'have_innodb';
  • If InnoDB is not present, you have a mysqld binary that was compiled without InnoDB support and you need to get a different one.
  • 如果InnoDB不存在,您有一個mysqld二進制文件它是在沒有InnoDB支持的情況下編譯的,您需要得到另一個mysqld二進制文件。
  • If InnoDB is present but disabled, go back through your startup options and configuration file and get rid of any --skip-innodb option.
  • 如果InnoDB存在但是禁用的,那麼可以通過啓動選項和配置文件返回,並刪除任何--skip-innodb選項。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章