Home > MySQL Cluster 5.1でディスクベースのテーブルを作る

MySQL Cluster 5.1でディスクベースのテーブルを作る

  • December 5, 2007 5:14 PM

手順は、次の3段階

  1. ログファイルグループを作る
  2. テーブルスペースを作る
  3. テーブルを作る

mysql> create logfile group lg_1 add undofile 'undo_1.dat' engine ndb;
Query OK, 0 rows affected (41.14 sec)

mysql> create tablespace ts_1 add datafile 'data_1.dat' use logfile group lg_1 engine ndb;
Query OK, 0 rows affected (38.22 sec)

mysql> create table t2(a int primary key auto_increment, b int) tablespace ts_1 storage disk engine ndb;
Query OK, 0 rows affected (0.77 sec)

ログファイルグループおよびテーブルスペースはデータノードごとに管理される。

関連エントリー

Home > MySQL Cluster 5.1でディスクベースのテーブルを作る

Search
Feeds

Return to page top