~ubuntu-branches/ubuntu/hardy/mysql-dfsg-5.0/hardy-updates

« back to all changes in this revision

Viewing changes to man/ndb_drop_index.1

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2007-04-02 16:10:53 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20070402161053-zkil9hjq9k5p1uzv
Tags: 5.0.37-0ubuntu1
* New upstream bugfix release.
  - Fixes replication failure with auto-increment and on duplicate key
    update, a regression introduced into 5.0.24. (LP: #95821)
* debian/control: Set Ubuntu maintainer.
* debian/rules: Change comments from 'Debian etch' to 'Ubuntu 7.04'.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
.\"     Title: \fBndb_drop_index\fR
 
2
.\"    Author: 
 
3
.\" Generator: DocBook XSL Stylesheets v1.70.1 <http://docbook.sf.net/>
 
4
.\"      Date: 03/05/2007
 
5
.\"    Manual: MySQL Database System
 
6
.\"    Source: MySQL 5.0
 
7
.\"
 
8
.TH "\fBNDB_DROP_INDEX\fR" "1" "03/05/2007" "MySQL 5.0" "MySQL Database System"
 
9
.\" disable hyphenation
 
10
.nh
 
11
.\" disable justification (adjust text to left margin only)
 
12
.ad l
 
13
.SH "NAME"
 
14
ndb_drop_index \- drop index from NDB table
 
15
.SH "SYNOPSIS"
 
16
.HP 23
 
17
\fBndb_drop_index \fR\fB\fIoptions\fR\fR
 
18
.SH "DESCRIPTION"
 
19
.PP
 
20
\fBndb_drop_index\fR
 
21
drops the specified index from an
 
22
NDB
 
23
table.
 
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.
 
26
.PP
 
27
\fBUsage\fR:
 
28
.sp
 
29
.RS 3n
 
30
.nf
 
31
ndb_drop_index \-c \fIconnect_string\fR \fItable_name\fR \fIindex\fR \-d \fIdb_name\fR
 
32
.fi
 
33
.RE
 
34
.PP
 
35
The statement shown above drops the index named
 
36
\fIindex\fR
 
37
from the
 
38
\fItable\fR
 
39
in the
 
40
\fIdatabase\fR.
 
41
.PP
 
42
\fBAdditional Options\fR: None that are specific to this application.
 
43
.PP
 
44
\fBWarning\fR:
 
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:
 
46
.sp
 
47
.RS 3n
 
48
.nf
 
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.
 
59
mysql> SHOW TABLES;
 
60
+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+
 
61
| Tables_in_ctest1 |
 
62
+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+
 
63
| a                |
 
64
| bt1              |
 
65
| bt2              |
 
66
| dogs             |
 
67
| employees        |
 
68
| fish             |
 
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
 
73
.fi
 
74
.RE
 
75
.PP
 
76
In such a case, your
 
77
\fIonly\fR
 
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
 
79
or the
 
80
\fBndb_drop_table\fR
 
81
utility (see
 
82
\fBndb_drop_table\fR(1)) to drop the table.
 
83
.SH "COPYRIGHT"
 
84
.PP
 
85
Copyright 1997\-2007 MySQL AB
 
86
.PP
 
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.
 
88
.PP
 
89
Please email
 
90
<docs@mysql.com>
 
91
for more information.
 
92
.SH "SEE ALSO"
 
93
make_win_bin_dist(1),
 
94
msql2mysql(1),
 
95
my_print_defaults(1),
 
96
myisam_ftdump(1),
 
97
myisamchk(1),
 
98
myisamlog(1),
 
99
myisampack(1),
 
100
mysql(1),
 
101
mysql.server(1),
 
102
mysql_config(1),
 
103
mysql_explain_log(1),
 
104
mysql_fix_privilege_tables(1),
 
105
mysql_install_db(1),
 
106
mysql_tzinfo_to_sql(1),
 
107
mysql_upgrade(1),
 
108
mysql_zap(1),
 
109
mysqlaccess(1),
 
110
mysqladmin(1),
 
111
mysqlbinlog(1),
 
112
mysqlcheck(1),
 
113
mysqld(8),
 
114
mysqld_multi(1),
 
115
mysqld_safe(1),
 
116
mysqldump(1),
 
117
mysqlhotcopy(1),
 
118
mysqlimport(1),
 
119
mysqlmanager(8),
 
120
mysqlshow(1),
 
121
ndb_config(1),
 
122
ndb_cpcd(1),
 
123
ndb_delete_all(1),
 
124
ndb_desc(1),
 
125
ndb_drop_table(1),
 
126
ndb_error_reporter(1),
 
127
ndb_mgm(1),
 
128
ndb_mgmd(1),
 
129
ndb_print_backup_file(1),
 
130
ndb_print_schema_file(1),
 
131
ndb_print_sys_file(1),
 
132
ndb_restore(1),
 
133
ndb_select_all(1),
 
134
ndb_select_count(1),
 
135
ndb_show_tables(1),
 
136
ndb_size.pl(1),
 
137
ndb_waiter(1),
 
138
ndbd(1),
 
139
perror(1),
 
140
replace(1),
 
141
safe_mysqld(1)
 
142
.P
 
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/.
 
146
.SH AUTHOR
 
147
MySQL AB (http://www.mysql.com/).
 
148
This software comes with no warranty.