This is a Perl script that can be used to estimate the amount of space that would be required by a MySQL database if it were converted to use the
38
38
NDBCLUSTER
39
storage engine\&. Unlike the other utilities discussed in this section, it does not require access to a MySQL Cluster (in fact, there is no reason for it to do so)\&. However, it does need to access the MySQL server on which the database to be tested resides\&.
39
storage engine\&. Unlike the other utilities discussed in this section, it does not require access to an NDB Cluster (in fact, there is no reason for it to do so)\&. However, it does need to access the MySQL server on which the database to be tested resides\&.
40
40
Requirements
41
41
.sp
42
42
.RS 4
47
47
.sp -1
48
48
.IP \(bu 2.3
49
49
.\}
50
A running MySQL server\&. The server instance does not have to provide support for MySQL Cluster\&.
50
A running MySQL server\&. The server instance does not have to provide support for NDB Cluster\&.
51
51
.RE
52
52
.sp
53
53
.RS 4
92
92
can also be found in the MySQL sources in
93
93
storage/ndb/tools\&.
94
94
.PP
95
The following table includes options that are specific to the MySQL Cluster program
96
\fBndb_size\&.pl\fR\&. Additional descriptions follow the table\&. For options common to most MySQL Cluster programs (including
95
The following table includes options that are specific to the NDB Cluster program
96
\fBndb_size\&.pl\fR\&. Additional descriptions follow the table\&. For options common to most NDB Cluster programs (including
97
97
\fBndb_size\&.pl\fR), see
98
Options Common to MySQL Cluster Programs(1)\&.
98
Options Common to NDB Cluster Programs(1)\&.
99
99
.sp
100
100
.it 1 an-trap
101
101
.nr an-no-space-flag 1
132
132
\fB\-\-excludetables\fR
133
133
option\&. A host name can be specified using
134
134
\fB\-\-hostname\fR; the default is
135
localhost\&. In MySQL Cluster NDB 7\&.2\&.6 and later, you can specify a port in addition to the host using
135
localhost\&. In NDB 7\&.2\&.6 and later, you can specify a port in addition to the host using
136
136
\fIhost\fR:\fIport\fR
137
137
format for the value of
138
138
\fB\-\-hostname\fR\&. The default port number is 3306\&. If necessary, you can also specify a socket; the default is