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.

258 lines
5.7 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: 04/06/2010
  6. .\" Manual: MySQL Database System
  7. .\" Source: MySQL 5.1
  8. .\" Language: English
  9. .\"
  10. .TH "\FBMYISAM_FTDUMP\FR" "1" "04/06/2010" "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\&. Before using
  37. \fBmyisam_ftdump\fR, be sure to issue a
  38. FLUSH TABLES
  39. statement first if the server is running\&.
  40. .PP
  41. \fBmyisam_ftdump\fR
  42. scans and dumps the entire index, which is not particularly fast\&. On the other hand, the distribution of words changes infrequently, so it need not be run often\&.
  43. .PP
  44. Invoke
  45. \fBmyisam_ftdump\fR
  46. like this:
  47. .sp
  48. .if n \{\
  49. .RS 4
  50. .\}
  51. .nf
  52. shell> \fBmyisam_ftdump [\fR\fB\fIoptions\fR\fR\fB] \fR\fB\fItbl_name\fR\fR\fB \fR\fB\fIindex_num\fR\fR
  53. .fi
  54. .if n \{\
  55. .RE
  56. .\}
  57. .PP
  58. The
  59. \fItbl_name\fR
  60. argument should be the name of a
  61. MyISAM
  62. table\&. You can also specify a table by naming its index file (the file with the
  63. \&.MYI
  64. suffix)\&. If you do not invoke
  65. \fBmyisam_ftdump\fR
  66. 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\&.
  67. .PP
  68. Example: Suppose that the
  69. test
  70. database contains a table named
  71. mytexttablel
  72. that has the following definition:
  73. .sp
  74. .if n \{\
  75. .RS 4
  76. .\}
  77. .nf
  78. CREATE TABLE mytexttable
  79. (
  80. id INT NOT NULL,
  81. txt TEXT NOT NULL,
  82. PRIMARY KEY (id),
  83. FULLTEXT (txt)
  84. );
  85. .fi
  86. .if n \{\
  87. .RE
  88. .\}
  89. .PP
  90. The index on
  91. id
  92. is index 0 and the
  93. FULLTEXT
  94. index on
  95. txt
  96. is index 1\&. If your working directory is the
  97. test
  98. database directory, invoke
  99. \fBmyisam_ftdump\fR
  100. as follows:
  101. .sp
  102. .if n \{\
  103. .RS 4
  104. .\}
  105. .nf
  106. shell> \fBmyisam_ftdump mytexttable 1\fR
  107. .fi
  108. .if n \{\
  109. .RE
  110. .\}
  111. .PP
  112. If the path name to the
  113. test
  114. database directory is
  115. /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
  116. \fBmyisam_ftdump\fR
  117. in the database directory:
  118. .sp
  119. .if n \{\
  120. .RS 4
  121. .\}
  122. .nf
  123. shell> \fBmyisam_ftdump /usr/local/mysql/data/test/mytexttable 1\fR
  124. .fi
  125. .if n \{\
  126. .RE
  127. .\}
  128. .PP
  129. You can use
  130. \fBmyisam_ftdump\fR
  131. to generate a list of index entries in order of frequency of occurrence like this:
  132. .sp
  133. .if n \{\
  134. .RS 4
  135. .\}
  136. .nf
  137. shell> \fBmyisam_ftdump \-c mytexttable 1 | sort \-r\fR
  138. .fi
  139. .if n \{\
  140. .RE
  141. .\}
  142. .PP
  143. \fBmyisam_ftdump\fR
  144. supports the following options:
  145. .sp
  146. .RS 4
  147. .ie n \{\
  148. \h'-04'\(bu\h'+03'\c
  149. .\}
  150. .el \{\
  151. .sp -1
  152. .IP \(bu 2.3
  153. .\}
  154. .\" myisam_ftdump: help option
  155. .\" help option: myisam_ftdump
  156. \fB\-\-help\fR,
  157. \fB\-h\fR
  158. \fB\-?\fR
  159. .sp
  160. Display a help message and exit\&.
  161. .RE
  162. .sp
  163. .RS 4
  164. .ie n \{\
  165. \h'-04'\(bu\h'+03'\c
  166. .\}
  167. .el \{\
  168. .sp -1
  169. .IP \(bu 2.3
  170. .\}
  171. .\" myisam_ftdump: count option
  172. .\" count option: myisam_ftdump
  173. \fB\-\-count\fR,
  174. \fB\-c\fR
  175. .sp
  176. Calculate per\-word statistics (counts and global weights)\&.
  177. .RE
  178. .sp
  179. .RS 4
  180. .ie n \{\
  181. \h'-04'\(bu\h'+03'\c
  182. .\}
  183. .el \{\
  184. .sp -1
  185. .IP \(bu 2.3
  186. .\}
  187. .\" myisam_ftdump: dump option
  188. .\" dump option: myisam_ftdump
  189. \fB\-\-dump\fR,
  190. \fB\-d\fR
  191. .sp
  192. Dump the index, including data offsets and word weights\&.
  193. .RE
  194. .sp
  195. .RS 4
  196. .ie n \{\
  197. \h'-04'\(bu\h'+03'\c
  198. .\}
  199. .el \{\
  200. .sp -1
  201. .IP \(bu 2.3
  202. .\}
  203. .\" myisam_ftdump: length option
  204. .\" length option: myisam_ftdump
  205. \fB\-\-length\fR,
  206. \fB\-l\fR
  207. .sp
  208. Report the length distribution\&.
  209. .RE
  210. .sp
  211. .RS 4
  212. .ie n \{\
  213. \h'-04'\(bu\h'+03'\c
  214. .\}
  215. .el \{\
  216. .sp -1
  217. .IP \(bu 2.3
  218. .\}
  219. .\" myisam_ftdump: stats option
  220. .\" stats option: myisam_ftdump
  221. \fB\-\-stats\fR,
  222. \fB\-s\fR
  223. .sp
  224. Report global index statistics\&. This is the default operation if no other operation is specified\&.
  225. .RE
  226. .sp
  227. .RS 4
  228. .ie n \{\
  229. \h'-04'\(bu\h'+03'\c
  230. .\}
  231. .el \{\
  232. .sp -1
  233. .IP \(bu 2.3
  234. .\}
  235. .\" myisam_ftdump: verbose option
  236. .\" verbose option: myisam_ftdump
  237. \fB\-\-verbose\fR,
  238. \fB\-v\fR
  239. .sp
  240. Verbose mode\&. Print more output about what the program does\&.
  241. .RE
  242. .SH "COPYRIGHT"
  243. .br
  244. .PP
  245. Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc.
  246. .PP
  247. 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.
  248. .PP
  249. 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.
  250. .PP
  251. 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/.
  252. .sp
  253. .SH "SEE ALSO"
  254. For more information, please refer to the MySQL Reference Manual,
  255. which may already be installed locally and which is also available
  256. online at http://dev.mysql.com/doc/.
  257. .SH AUTHOR
  258. Sun Microsystems, Inc. (http://www.mysql.com/).