Loading...
MySQL 9.5 Reference Manual 9.5의 25.5.26 ndb_select_count — Print Row Counts for NDB Tables의 한국어 번역본입니다.
아래의 경우에 피드백에서 신고해주신다면 반영하겠습니다.
감사합니다 :)
ndb_select_count는 하나 이상의 NDB 테이블에 있는 행(row)의 개수를 출력합니다. 단일 테이블에 대해서는 결과가 MySQL 문장 SELECT COUNT(*) FROM tbl_name을 사용하여 얻는 결과와 동일합니다.
1ndb_select_count [-c connection_string] -ddb_name tbl_name[, tbl_name2[, ...]]
ndb_select_count와 함께 사용할 수 있는 옵션들은 다음 표에 나와 있습니다. 추가 설명이 표 다음에 이어집니다.
| Property | Value |
|---|---|
| Command-Line Format | --character-sets-dir=path |
문자 집합이 포함된 디렉터리입니다.
| Property | Value |
|---|---|
| Command-Line Format | --connect-retries=# |
| Type | Integer |
| Default Value | 12 |
| Minimum Value | 0 |
| Maximum Value | 12 |
연결을 포기하기 전에 재시도할 횟수입니다.
| Property | Value |
|---|---|
| Command-Line Format | --connect-retry-delay=# |
| Type | Integer |
| Default Value | 5 |
| Minimum Value | 0 |
| Maximum Value | 5 |
관리 서버에 연결을 시도하는 각 시도 사이에 대기할 초(second) 수입니다.
| Property | Value |
|---|---|
| Command-Line Format | --connect-string=connection_string |
| Type | String |
| Default Value | [none] |
--ndb-connectstring과 동일합니다.
| Property | Value |
|---|---|
| Command-Line Format | --core-file |
에러가 발생했을 때 코어 파일을 작성합니다. 디버깅에 사용됩니다.
| Property | Value |
|---|---|
| Command-Line Format | --defaults-file=path |
| Type | String |
| Default Value | [none] |
지정된 파일에서만 기본 옵션들을 읽습니다.
| Property | Value |
|---|---|
| Command-Line Format | --defaults-extra-file=path |
| Type | String |
| Default Value | [none] |
글로벌 파일들이 읽힌 이후에 지정된 파일을 읽습니다.
| Property | Value |
|---|---|
| Command-Line Format | --defaults-group-suffix=string |
| Type | String |
| Default Value | [none] |
concat(group, suffix)인 그룹들도 함께 읽습니다.
| Property | Value |
|---|---|
| Command-Line Format | --login-path=path |
| Type | String |
| Default Value | [none] |
로그인 파일에서 지정된 경로를 읽습니다.
| Property | Value |
|---|---|
| Command-Line Format | --no-login-paths |
로그인 경로 파일에서 옵션을 읽는 것을 건너뜁니다.
| Property | Value |
|---|---|
| Command-Line Format | --help |
도움말 텍스트를 표시하고 종료합니다.
| Property | Value |
|---|---|
| Command-Line Format | --ndb-connectstring=connection_string |
| Type | String |
| Default Value | [none] |
ndb_mgmd에 연결하기 위한 연결 문자열을 설정합니다. 구문:
[nodeid=id;][host=]hostname[:port].
NDB_CONNECTSTRING과
my.cnf에 있는 항목들을 오버라이드합니다.
| Property | Value |
|---|---|
| Command-Line Format | --ndb-mgm-tls=level |
| Type | Enumeration |
| Default Value | relaxed |
| Valid Values | relaxed<br>strict |
관리 서버에 연결하기 위해 요구되는 TLS 지원 수준을 설정합니다. relaxed 또는
strict 중 하나입니다.
relaxed(기본값)는 TLS 연결을 시도하지만,
성공이 필수는 아님을 의미합니다. strict는
연결에 TLS가 필수임을 의미합니다.
| Property | Value |
|---|---|
| Command-Line Format | --ndb-mgmd-host=connection_string |
| Type | String |
| Default Value | [none] |
--ndb-connectstring과 동일합니다.
| Property | Value |
|---|---|
| Command-Line Format | --ndb-nodeid=# |
| Type | Integer |
| Default Value | [none] |
이 노드의 노드 ID를 설정하며,
--ndb-connectstring에 의해 설정된 ID를 오버라이드합니다.
| Property | Value |
|---|---|
| Command-Line Format | --ndb-optimized-node-selection |
트랜잭션을 위한 노드 선택에 대한 최적화를 활성화합니다. 기본적으로 활성화되어 있으며,
비활성화하려면 --skip-ndb-optimized-node-selection을
사용합니다.
| Property | Value |
|---|---|
| Command-Line Format | --ndb-tls-search-path=list |
| Type | Path name |
| Default Value (Unix) | $HOME/ndb-tls |
| Default Value (Windows) | $HOMEDIR/ndb-tls |
CA 파일을 검색할 디렉터리 목록을 지정합니다. 유닉스 플랫폼에서는 디렉터리 이름들이 콜론
(:)으로 구분되고, 윈도우 시스템에서는 세미콜론
문자(;)가 구분자로 사용됩니다.
디렉터리 참조는 상대 또는 절대일 수 있습니다. 여기에는 하나 이상의 환경 변수를 포함할 수 있으며, 각 변수는 접두사 달러 기호($)로 표시되고
사용 전에 확장됩니다.
검색은 가장 왼쪽에 위치한 디렉터리부터 시작하여 파일이 발견될 때까지 왼쪽에서 오른쪽으로 진행됩니다. 빈 문자열은 빈 검색 경로를 나타내며, 이는 모든 검색이 실패하게 합니다. 단일 점
(.)으로 이루어진 문자열은 검색 경로가
현재 작업 디렉터리로 제한됨을 나타냅니다.
검색 경로가 제공되지 않으면, 컴파일 시에 정의된 기본 값이 사용됩니다. 이 값은 사용하는 플랫폼에 따라 달라집니다. 윈도우에서는
\ndb-tls이고, 다른 플랫폼(Linux 포함)에서는
$HOME/ndb-tls입니다. 이는 NDB Cluster를 컴파일할 때
-DWITH_NDB_TLS_SEARCH_PATH를 사용하여 오버라이드할 수 있습니다.
| Property | Value |
|---|---|
| Command-Line Format | --no-defaults |
로그인 파일 이외의 어떤 옵션 파일에서도 기본 옵션을 읽지 않습니다.
| Property | Value |
|---|---|
| Command-Line Format | --print-defaults |
프로그램 인수 목록을 출력하고 종료합니다.
| Property | Value |
|---|---|
| Command-Line Format | --usage |
도움말 텍스트를 표시하고 종료합니다.
--help와 동일합니다.
| Property | Value |
|---|---|
| Command-Line Format | --version |
버전 정보를 표시하고 종료합니다.
이 명령을 호출할 때 테이블 이름들을 공백으로 구분하여 나열하면, 동일한 데이터베이스에 있는 여러 테이블로부터 행 수를 얻을 수 있습니다. 예시는 Sample Output을 참조하십시오.
1$> ./ndb_select_count -c localhost -d ctest1 fish dogs 26 records in table fish 34 records in table dogs
25.5.25 ndb_select_all — Print Rows from an NDB Table
25.5.27 ndb_show_tables — Display List of NDB Tables