1
.\" Title: \fBndb_drop_index\fR
3
.\" Generator: DocBook XSL Stylesheets v1.70.1 <http://docbook.sf.net/>
5
.\" Manual: MySQL Database System
8
.TH "\fBNDB_DROP_INDEX\fR" "1" "03/05/2007" "MySQL 5.0" "MySQL Database System"
9
.\" disable hyphenation
11
.\" disable justification (adjust text to left margin only)
14
ndb_drop_index \- drop index from NDB table
17
\fBndb_drop_index \fR\fB\fIoptions\fR\fR
21
drops the specified index from an
24
\fIIt is recommended that you use this utility only as an example for writing NDB API applications\fR
25
\(em see the Warning later in this section for details.
31
ndb_drop_index \-c \fIconnect_string\fR \fItable_name\fR \fIindex\fR \-d \fIdb_name\fR
35
The statement shown above drops the index named
42
\fBAdditional Options\fR: None that are specific to this application.
45
\fIOperations performed on Cluster table indexes using the NDB API are not visible to MySQL and make the table unusable by a MySQL server\fR. If you use this program to drop an index, then try to access the table from an SQL node, an error results, as shown here:
49
shell> \fB./ndb_drop_index \-c localhost dogs ix \-d ctest1\fR
50
Dropping index dogs/idx...OK
51
NDBT_ProgramExit: 0 \- OK
52
shell> \fB./mysql \-u jon \-p ctest1\fR
53
Enter password: *******
54
Reading table information for completion of table and column names
55
You can turn off this feature to get a quicker startup with \-A
56
Welcome to the MySQL monitor. Commands end with ; or \\g.
57
Your MySQL connection id is 7 to server version: 5.1.12\-beta\-20060817
58
Type 'help;' or '\\h' for help. Type '\\c' to clear the buffer.
60
+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+
62
+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+
69
+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+
70
6 rows in set (0.00 sec)
71
mysql> SELECT * FROM dogs;
72
ERROR 1296 (HY000): Got error 4243 'Index not found' from NDBCLUSTER
78
option for making the table available to MySQL again is to drop the table and re\-create it. You can use either the SQL statementDROP TABLE
82
\fBndb_drop_table\fR(1)) to drop the table.
85
Copyright 1997\-2007 MySQL AB
87
This documentation is NOT distributed under a GPL license. Use of this documentation is subject to the following terms: You may create a printed copy of this documentation solely for your own personal use. Conversion to other formats is allowed as long as the actual content is not altered or edited in any way. You shall not publish or distribute this documentation in any form or on any media, except if you distribute the documentation in a manner similar to how MySQL disseminates it (that is, electronically for download on a Web site with the software) or on a CD\-ROM or similar medium, provided however that the documentation is disseminated together with the software on the same medium. Any other use, such as any dissemination of printed copies or use of this documentation, in whole or in part, in another publication, requires the prior written consent from an authorized representative of MySQL AB. MySQL AB reserves any and all rights to this documentation not expressly granted above.
103
mysql_explain_log(1),
104
mysql_fix_privilege_tables(1),
106
mysql_tzinfo_to_sql(1),
126
ndb_error_reporter(1),
129
ndb_print_backup_file(1),
130
ndb_print_schema_file(1),
131
ndb_print_sys_file(1),
143
For more information, please refer to the MySQL Reference Manual,
144
which may already be installed locally and which is also available
145
online at http://dev.mysql.com/doc/.
147
MySQL AB (http://www.mysql.com/).
148
This software comes with no warranty.