You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

238 lines
5.2 KiB

  1. '\" t
  2. .\" Title: \fBmyisam_ftdump\fR
  3. .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
  4. .\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
  5. .\" Date: 11/04/2009
  6. .\" Manual: MySQL Database System
  7. .\" Source: MySQL 5.1
  8. .\" Language: English
  9. .\"
  10. .TH "\FBMYISAM_FTDUMP\FR" "1" "11/04/2009" "MySQL 5\&.1" "MySQL Database System"
  11. .\" -----------------------------------------------------------------
  12. .\" * set default formatting
  13. .\" -----------------------------------------------------------------
  14. .\" disable hyphenation
  15. .nh
  16. .\" disable justification (adjust text to left margin only)
  17. .ad l
  18. .\" -----------------------------------------------------------------
  19. .\" * MAIN CONTENT STARTS HERE *
  20. .\" -----------------------------------------------------------------
  21. .\" myisam_ftdump
  22. .SH "NAME"
  23. myisam_ftdump \- display full\-text index information
  24. .SH "SYNOPSIS"
  25. .HP \w'\fBmyisam_ftdump\ [\fR\fB\fIoptions\fR\fR\fB]\ \fR\fB\fItbl_name\fR\fR\fB\ \fR\fB\fIindex_num\fR\fR\ 'u
  26. \fBmyisam_ftdump [\fR\fB\fIoptions\fR\fR\fB] \fR\fB\fItbl_name\fR\fR\fB \fR\fB\fIindex_num\fR\fR
  27. .SH "DESCRIPTION"
  28. .PP
  29. \fBmyisam_ftdump\fR
  30. displays information about
  31. FULLTEXT
  32. indexes in
  33. MyISAM
  34. tables\&. It reads the
  35. MyISAM
  36. index file directly, so it must be run on the server host where the table is located
  37. .PP
  38. Invoke
  39. \fBmyisam_ftdump\fR
  40. like this:
  41. .sp
  42. .if n \{\
  43. .RS 4
  44. .\}
  45. .nf
  46. shell> \fBmyisam_ftdump [\fR\fB\fIoptions\fR\fR\fB] \fR\fB\fItbl_name\fR\fR\fB \fR\fB\fIindex_num\fR\fR
  47. .fi
  48. .if n \{\
  49. .RE
  50. .\}
  51. .PP
  52. The
  53. \fItbl_name\fR
  54. argument should be the name of a
  55. MyISAM
  56. table\&. You can also specify a table by naming its index file (the file with the
  57. \&.MYI
  58. suffix)\&. If you do not invoke
  59. \fBmyisam_ftdump\fR
  60. in the directory where the table files are located, the table or index file name must be preceded by the path name to the table\'s database directory\&. Index numbers begin with 0\&.
  61. .PP
  62. Example: Suppose that the
  63. test
  64. database contains a table named
  65. mytexttablel
  66. that has the following definition:
  67. .sp
  68. .if n \{\
  69. .RS 4
  70. .\}
  71. .nf
  72. CREATE TABLE mytexttable
  73. (
  74. id INT NOT NULL,
  75. txt TEXT NOT NULL,
  76. PRIMARY KEY (id),
  77. FULLTEXT (txt)
  78. );
  79. .fi
  80. .if n \{\
  81. .RE
  82. .\}
  83. .PP
  84. The index on
  85. id
  86. is index 0 and the
  87. FULLTEXT
  88. index on
  89. txt
  90. is index 1\&. If your working directory is the
  91. test
  92. database directory, invoke
  93. \fBmyisam_ftdump\fR
  94. as follows:
  95. .sp
  96. .if n \{\
  97. .RS 4
  98. .\}
  99. .nf
  100. shell> \fBmyisam_ftdump mytexttable 1\fR
  101. .fi
  102. .if n \{\
  103. .RE
  104. .\}
  105. .PP
  106. If the path name to the
  107. test
  108. database directory is
  109. /usr/local/mysql/data/test, you can also specify the table name argument using that path name\&. This is useful if you do not invoke
  110. \fBmyisam_ftdump\fR
  111. in the database directory:
  112. .sp
  113. .if n \{\
  114. .RS 4
  115. .\}
  116. .nf
  117. shell> \fBmyisam_ftdump /usr/local/mysql/data/test/mytexttable 1\fR
  118. .fi
  119. .if n \{\
  120. .RE
  121. .\}
  122. .PP
  123. \fBmyisam_ftdump\fR
  124. supports the following options:
  125. .sp
  126. .RS 4
  127. .ie n \{\
  128. \h'-04'\(bu\h'+03'\c
  129. .\}
  130. .el \{\
  131. .sp -1
  132. .IP \(bu 2.3
  133. .\}
  134. .\" myisam_ftdump: help option
  135. .\" help option: myisam_ftdump
  136. \fB\-\-help\fR,
  137. \fB\-h\fR
  138. \fB\-?\fR
  139. .sp
  140. Display a help message and exit\&.
  141. .RE
  142. .sp
  143. .RS 4
  144. .ie n \{\
  145. \h'-04'\(bu\h'+03'\c
  146. .\}
  147. .el \{\
  148. .sp -1
  149. .IP \(bu 2.3
  150. .\}
  151. .\" myisam_ftdump: count option
  152. .\" count option: myisam_ftdump
  153. \fB\-\-count\fR,
  154. \fB\-c\fR
  155. .sp
  156. Calculate per\-word statistics (counts and global weights)\&.
  157. .RE
  158. .sp
  159. .RS 4
  160. .ie n \{\
  161. \h'-04'\(bu\h'+03'\c
  162. .\}
  163. .el \{\
  164. .sp -1
  165. .IP \(bu 2.3
  166. .\}
  167. .\" myisam_ftdump: dump option
  168. .\" dump option: myisam_ftdump
  169. \fB\-\-dump\fR,
  170. \fB\-d\fR
  171. .sp
  172. Dump the index, including data offsets and word weights\&.
  173. .RE
  174. .sp
  175. .RS 4
  176. .ie n \{\
  177. \h'-04'\(bu\h'+03'\c
  178. .\}
  179. .el \{\
  180. .sp -1
  181. .IP \(bu 2.3
  182. .\}
  183. .\" myisam_ftdump: length option
  184. .\" length option: myisam_ftdump
  185. \fB\-\-length\fR,
  186. \fB\-l\fR
  187. .sp
  188. Report the length distribution\&.
  189. .RE
  190. .sp
  191. .RS 4
  192. .ie n \{\
  193. \h'-04'\(bu\h'+03'\c
  194. .\}
  195. .el \{\
  196. .sp -1
  197. .IP \(bu 2.3
  198. .\}
  199. .\" myisam_ftdump: stats option
  200. .\" stats option: myisam_ftdump
  201. \fB\-\-stats\fR,
  202. \fB\-s\fR
  203. .sp
  204. Report global index statistics\&. This is the default operation if no other operation is specified\&.
  205. .RE
  206. .sp
  207. .RS 4
  208. .ie n \{\
  209. \h'-04'\(bu\h'+03'\c
  210. .\}
  211. .el \{\
  212. .sp -1
  213. .IP \(bu 2.3
  214. .\}
  215. .\" myisam_ftdump: verbose option
  216. .\" verbose option: myisam_ftdump
  217. \fB\-\-verbose\fR,
  218. \fB\-v\fR
  219. .sp
  220. Verbose mode\&. Print more output about what the program does\&.
  221. .RE
  222. .SH "COPYRIGHT"
  223. .br
  224. .PP
  225. Copyright 2007-2008 MySQL AB, 2009 Sun Microsystems, Inc.
  226. .PP
  227. This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
  228. .PP
  229. This documentation is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  230. .PP
  231. You should have received a copy of the GNU General Public License along with the program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA or see http://www.gnu.org/licenses/.
  232. .sp
  233. .SH "SEE ALSO"
  234. For more information, please refer to the MySQL Reference Manual,
  235. which may already be installed locally and which is also available
  236. online at http://dev.mysql.com/doc/.
  237. .SH AUTHOR
  238. Sun Microsystems, Inc. (http://www.mysql.com/).