ndb_select_count
— Print Row Counts for NDB Tables
1645
INSERT INTO dogs VALUES
('', 'Lassie', 'collie'),
('', 'Scooby-Doo', 'Great Dane'),
('', 'Rin-Tin-Tin', 'Alsatian'),
('', 'Rosscoe', 'Mutt');
This demonstrates the use of several additional
ndb_select_all
options:
shell>
./ndb_select_all -d ctest1 dogs -o ix -z --gci
GCI id name breed
834461 2 [Scooby-Doo] [Great Dane]
834878 4 [Rosscoe] [Mutt]
834463 3 [Rin-Tin-Tin] [Alsatian]
835657 1 [Lassie] [Collie]
4 rows returned
NDBT_ProgramExit: 0 - OK
17.4.16.
ndb_select_count
— Print Row Counts for NDB Tables
ndb_select_count
prints the number of rows in one or more
NDB
tables. With a single table,
the result is equivalent to that obtained by using the MySQL statement
SELECT COUNT(*) FROM
tbl_name
.
Usage
ndb_select_count [-c
connect_string
] -d
db_name
tbl_name
[,
tbl_name2
[, ...]]
The following table includes options that are specific to the MySQL Cluster native backup restoration
program
ndb_select_count
. Additional descriptions follow the table. For options common to most
MySQL Cluster programs (including
ndb_select_count
), see
Section 17.4.20, “Options Common to
MySQL Cluster Programs — Options Common to MySQL Cluster Programs”
.
Table 17.21.
ndb_select_count
Options and Variables: MySQL 5.0
Format
Description
Added / Removed
--database=dbname
,
-d
Name of the database in which the
table is found
All MySQL 5.0
based releases
--parallelism=#
,
-p
Degree of parallelism
All MySQL 5.0
based releases
--lock=#
,
-l
Lock type
All MySQL 5.0
based releases
You can obtain row counts from multiple tables in the same database by listing the table names
separated by spaces when invoking this command, as shown under Sample Output.
Sample Output
shell>
./ndb_select_count -c localhost -d ctest1 fish dogs
6 records in table fish
4 records in table dogs
NDBT_ProgramExit: 0 - OK
17.4.17.
ndb_show_tables
— Display List of NDB Tables
ndb_show_tables
displays a list of all
NDB
database objects in the cluster. By default, this includes
not only both user-created tables and
NDB
system tables, but
NDB
-specific indexes, and internal
triggers, as well.
Summary of Contents for 5.0
Page 1: ...MySQL 5 0 Reference Manual ...
Page 18: ...xviii ...
Page 60: ...40 ...
Page 396: ...376 ...
Page 578: ...558 ...
Page 636: ...616 ...
Page 844: ...824 ...
Page 1234: ...1214 ...
Page 1427: ...MySQL Proxy Scripting 1407 ...
Page 1734: ...1714 ...
Page 1752: ...1732 ...
Page 1783: ...Configuring Connector ODBC 1763 ...
Page 1793: ...Connector ODBC Examples 1773 ...
Page 1839: ...Connector Net Installation 1819 2 You must choose the type of installation to perform ...
Page 2850: ...2830 ...
Page 2854: ...2834 ...
Page 2928: ...2908 ...
Page 3000: ...2980 ...
Page 3122: ...3102 ...
Page 3126: ...3106 ...
Page 3174: ...3154 ...
Page 3232: ...3212 ...