無料PHPプログラム

MySQL 5.1 リファレンスマニュアル :: 14 MySQL Cluster :: 14.9 クラスタ ユーティリティ プログラム :: 14.9.3 ndb_desc ? NDB テーブルの説明
« 14.9.2 ndb_delete_all ? NDB テーブルからのすべての行を削除する

14.9.4 ndb_drop_index »
Section Navigation      [Toggle]
  • 14.9 クラスタ ユーティリティ プログラム
  • 14.9.1 ndb_config ? NDB 設定情報の抽出
  • 14.9.2 ndb_delete_all ? NDB テーブルからのすべての行を削除する
  • 14.9.3 ndb_desc ? NDB テーブルの説明
  • 14.9.4 ndb_drop_index
  • 14.9.5 ndb_drop_table
  • 14.9.6 ndb_error_reporter
  • 14.9.7 ndb_print_backup_file
  • 14.9.8 ndb_print_schema_file
  • 14.9.9 ndb_print_sys_file
  • 14.9.10 ndb_select_all
  • 14.9.11 ndb_select_count
  • 14.9.12 ndb_show_tables
  • 14.9.13 ndb_size.pl ? NDBCluster サイズ仕様エスティメーター
  • 14.9.14 ndb_waiter

14.9.3. ndb_desc ? NDB テーブルの説明

ndb_desc は 1 つ以上の NDB テーブルの詳細な説明を提供します。

使用法:

ndb_desc -c connect_string tbl_name -d db_name

サンプル出力:

MySQL テーブルの作成およびポピュレーション ステートメント:

USE test;

CREATE TABLE fish (
    id INT(11) NOT NULL AUTO_INCREMENT,
    name VARCHAR(20),

    PRIMARY KEY pk (id),
    UNIQUE KEY uk (name)
) ENGINE=NDBCLUSTER;

INSERT INTO fish VALUES 
    ('','guppy'), ('','tuna'), ('','shark'), 
    ('','manta ray'), ('','grouper'), ('','puffer');

ndb_desc の出力:

shell> ./ndb_desc -c localhost fish -d test -p
-- fish --
Version: 16777221
Fragment type: 5
K Value: 6
Min load factor: 78
Max load factor: 80
Temporary table: no
Number of attributes: 2
Number of primary keys: 1
Length of frm data: 268
Row Checksum: 1
Row GCI: 1
TableStatus: Retrieved
-- Attributes --
id Int PRIMARY KEY DISTRIBUTION KEY AT=FIXED ST=MEMORY
name Varchar(20;latin1_swedish_ci) NULL AT=SHORT_VAR ST=MEMORY

-- Indexes --
PRIMARY KEY(id) - UniqueHashIndex
uk(name) - OrderedIndex
PRIMARY(id) - OrderedIndex
uk$unique(name) - UniqueHashIndex

-- Per partition info --
Partition  Row count  Commit count  Frag fixed memory  Frag varsized memory
2          2          2             65536              327680
1          2          2             65536              327680
3          2          2             65536              327680

NDBT_ProgramExit: 0 - OK

その他のオプション:

  • --extra-partition-info, -p

    テーブルのパーテッションに関するその他の情報のプリント

  • 複数のテーブルに関する情報はスペースで分離されたそれらの名前を使用して ndb_desc の  回の実行で取得できます。すべてのテーブルは同じデータベースにあることが必要です。

Copyright c 1997, 2010, Oracle and/or its affiliates. All rights reserved. Legal Notices
Top / Previous / Next / Up / Table of Contents
© 2010, Oracle Corporation and/or its affiliates

無料CGI PHPスクリプト | 新着情報スクリプト | 営業日カレンダー | PHPマニュアル | MySQLマニュアル | PEARマニュアル

Copyright (c) 2010 jmcodex.com All rights reserved.