MySQLのストレージエンジンの確認方法
MyISAMとInnoDBがあるようですが、これについての分かり易い説明がありました
MyISAMからInnoDBへ切り替えるときの注意点
http://nippondanji.blogspot.jp/2009/02/myisaminnodb.html
MySQLのMyISAMとInnoDBパフォーマンス比較
http://tech.basicinc.jp/MySQL/2013/04/28/mysql_myisam_vs_innodb/
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
; html-script: false ][root@host1 ~]# mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 9086 Server version: 5.5.33 MySQL Community Server (GPL) by Remi Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> show databases; +--------------------+ | Database | +--------------------+ | dotpj | | wordpress | +--------------------+ 2 rows in set (0.00 sec) mysql> use dotpj; Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Database changed mysql> show table status; +-----------------------------+--------+---------+------------+------+----------------+-------------+-----------------+--------------+-----------+----------------+---------------------+-------------+------------+-------------------+----------+----------------+------------------------------------------------------+ | Name | Engine | Version | Row_format | Rows | Avg_row_length | Data_length | Max_data_length | Index_length | Data_free | Auto_increment | Create_time | Update_time | Check_time | Collation | Checksum | Create_options | Comment | +-----------------------------+--------+---------+------------+------+----------------+-------------+-----------------+--------------+-----------+----------------+---------------------+-------------+------------+-------------------+----------+----------------+------------------------------------------------------+ | dotp_billingcode | InnoDB | 10 | Compact | 0 | 0 | 16384 | 0 | 0 | 11534336 | 1 | 2013-08-15 15:09:42 | NULL | NULL | latin1_swedish_ci | NULL | | | (snip) +-----------------------+--------+---------+------------+------+----------------+-------------+------------------+--------------+-----------+----------------+---------------------+---------------------+---------------------+-----------------+----------+----------------+---------+ 60 rows in set (0.01 sec) mysql> use wordpress; Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Database changed mysql> show table status; +-----------------------+--------+---------+------------+------+----------------+-------------+------------------+--------------+-----------+----------------+---------------------+---------------------+---------------------+-----------------+----------+----------------+---------+ | Name | Engine | Version | Row_format | Rows | Avg_row_length | Data_length | Max_data_length | Index_length | Data_free | Auto_increment | Create_time | Update_time | Check_time | Collation | Checksum | Create_options | Comment | +-----------------------+--------+---------+------------+------+----------------+-------------+------------------+--------------+-----------+----------------+---------------------+---------------------+---------------------+-----------------+----------+----------------+---------+ | wp_commentmeta | MyISAM | 10 | Dynamic | 0 | 0 | 0 | 281474976710655 | 1024 | 0 | 1 | 2010-08-27 19:31:07 | 2013-08-15 15:08:45 | 2013-08-15 15:09:42 | utf8_general_ci | NULL | | | (snip) +-----------------------+--------+---------+------------+------+----------------+-------------+------------------+--------------+-----------+----------------+---------------------+---------------------+---------------------+-----------------+----------+----------------+---------+ 15 rows in set (0.00 sec) |
デフォルトで使用されるエンジンはMySQL 5.5.5からはInnoDBでそれ以前はMyISAMになるようです。
WordPressでサイトを立ち上げた時はMySQL 4.x系でしたのでMyISAMでdotprojectをインストールした時はMySQL 5.5.28にアップグレードしていたのでInnoDBになったんですね。知らなかった(^^;;
デフォルトエンジンを設定するにはdefault-storage-engineを使用します
14.1. Setting the Storage Engine
http://dev.mysql.com/doc/refman/5.5/en/storage-engine-setting.html