2009-09-16 14:03:18 +02:00
'\" t
2009-05-25 11:59:47 +02:00
. \"
2024-09-03 19:15:59 +02:00
.TH "\fBMYISAM_FTDUMP\fR" "1" "3 September 2024" "MariaDB 11.4" "MariaDB Database System"
2009-09-16 14:03:18 +02:00
. \" -----------------------------------------------------------------
. \" * set default formatting
. \" -----------------------------------------------------------------
2009-05-25 11:59:47 +02:00
. \" disable hyphenation
.nh
. \" disable justification (adjust text to left margin only)
.ad l
2009-09-16 14:03:18 +02:00
. \" -----------------------------------------------------------------
. \" * MAIN CONTENT STARTS HERE *
. \" -----------------------------------------------------------------
. \" myisam_ftdump
2009-05-25 11:59:47 +02:00
.SH "NAME"
myisam_ftdump \- display full\- text index information
.SH "SYNOPSIS"
2009-09-16 14:03:18 +02:00
.HP \w '\fBmyisam_ftdump\ [\fR\fB\fIoptions\fR\fR\fB]\ \fR \fB \fI tbl_name\fR\fR\fB\ \fR \fB \fI index_num\fR\fR\ 'u
2009-05-25 11:59:47 +02:00
\fB myisam_ftdump [\fR \fB \fI options\fR \fR \fB ] \fR \fB \fI tbl_name\fR \fR \fB \fR \fB \fI index_num\fR \fR
.SH "DESCRIPTION"
.PP
\fB myisam_ftdump\fR
displays information about
FULLTEXT
indexes in
MyISAM
2009-09-16 14:03:18 +02:00
tables\& . It reads the
2009-05-25 11:59:47 +02:00
MyISAM
2010-04-28 15:06:11 +02:00
index file directly, so it must be run on the server host where the table is located\& . Before using
\fB myisam_ftdump\fR , be sure to issue a
FLUSH TABLES
statement first if the server is running\& .
.PP
\fB myisam_ftdump\fR
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\& .
2009-05-25 11:59:47 +02:00
.PP
Invoke
\fB myisam_ftdump\fR
like this:
.sp
2009-09-16 14:03:18 +02:00
.if n \{ \
.RS 4
. \}
2009-05-25 11:59:47 +02:00
.nf
shell> \fB myisam_ftdump [\fR \fB \fI options\fR \fR \fB ] \fR \fB \fI tbl_name\fR \fR \fB \fR \fB \fI index_num\fR \fR
.fi
2009-09-16 14:03:18 +02:00
.if n \{ \
2009-05-25 11:59:47 +02:00
.RE
2009-09-16 14:03:18 +02:00
. \}
2009-05-25 11:59:47 +02:00
.PP
The
\fI tbl_name\fR
argument should be the name of a
MyISAM
2009-09-16 14:03:18 +02:00
table\& . You can also specify a table by naming its index file (the file with the
\& .MYI
suffix)\& . If you do not invoke
2009-05-25 11:59:47 +02:00
\fB myisam_ftdump\fR
MDEV-23789: Fix unnecessary acute accents in man pages
The man pages has several places where \' is intended to escape the single
quote and just print '. However, in reality this will print an ` (acute
accent). Fix this by removing excess backslashes. Also remove some excess
& in front of dots, such escaping is also unnecessary.
Also join several lines to avoid lone words in quotes to be read by groff
as macros when they are just text.
In a table (t{}) the content must be on new lines separately, so groff
will try to read them as macros too, so use \(aq that renders to '
(single quote).
This error was originally detected by Lintian:
https://lintian.debian.org/tags/acute-accent-in-manual-page
Example of man page sections before and after:
Make a backup of each table´s data file using the name tbl_name.OLD.
->
Make a backup of each table's data file using the name tbl_name.OLD.
A typical debug_options string is ´d:t:o,file_name´.
The default is ´d:t:o,/tmp/my_print_defaults.trace´.
->
A typical debug_options string is 'd:t:o,file_name'.
The default is 'd:t:o,/tmp/my_print_defaults.trace'.
shell> mysql --xml -uroot -e "SHOW VARIABLES LIKE ´version%´"
<?xml version="1.0"?>
<resultset statement="SHOW VARIABLES LIKE ´version%´" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
->
shell> mysql --xml -uroot -e "SHOW VARIABLES LIKE 'version%'"
<?xml version="1.0"?>
<resultset statement="SHOW VARIABLES LIKE 'version%'" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
This command was used to validate no man pages have syntax errors:
for x in *.?
do
echo "##### $x #####"
LC_ALL=C.UTF-8 MANROFFSEQ='' MANWIDTH=80 man --warnings -E UTF-8 -l -Tutf8 -Z $x >/dev/null
done
The man pages are not perfect after this, there are still a lot of
suboptimal syntax, but this helps towards better man pages.
All new code of the whole pull request, including one or several files
that are either new files or modified ones, are contributed under the
BSD-new license. I am contributing on behalf of my employer Amazon Web
Services, Inc.
2023-03-11 13:01:39 -08:00
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\& .
2009-05-25 11:59:47 +02:00
.PP
Example: Suppose that the
test
database contains a table named
mytexttablel
that has the following definition:
.sp
2009-09-16 14:03:18 +02:00
.if n \{ \
.RS 4
. \}
2009-05-25 11:59:47 +02:00
.nf
CREATE TABLE mytexttable
(
id INT NOT NULL,
txt TEXT NOT NULL,
PRIMARY KEY (id),
FULLTEXT (txt)
);
.fi
2009-09-16 14:03:18 +02:00
.if n \{ \
2009-05-25 11:59:47 +02:00
.RE
2009-09-16 14:03:18 +02:00
. \}
2009-05-25 11:59:47 +02:00
.PP
The index on
id
is index 0 and the
FULLTEXT
index on
txt
2009-09-16 14:03:18 +02:00
is index 1\& . If your working directory is the
2009-05-25 11:59:47 +02:00
test
database directory, invoke
\fB myisam_ftdump\fR
as follows:
.sp
2009-09-16 14:03:18 +02:00
.if n \{ \
.RS 4
. \}
2009-05-25 11:59:47 +02:00
.nf
shell> \fB myisam_ftdump mytexttable 1\fR
.fi
2009-09-16 14:03:18 +02:00
.if n \{ \
2009-05-25 11:59:47 +02:00
.RE
2009-09-16 14:03:18 +02:00
. \}
2009-05-25 11:59:47 +02:00
.PP
If the path name to the
test
database directory is
2009-09-16 14:03:18 +02:00
/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
2009-05-25 11:59:47 +02:00
\fB myisam_ftdump\fR
in the database directory:
.sp
2009-09-16 14:03:18 +02:00
.if n \{ \
.RS 4
. \}
2009-05-25 11:59:47 +02:00
.nf
shell> \fB myisam_ftdump /usr/local/mysql/data/test/mytexttable 1\fR
.fi
2009-09-16 14:03:18 +02:00
.if n \{ \
2009-05-25 11:59:47 +02:00
.RE
2009-09-16 14:03:18 +02:00
. \}
2009-05-25 11:59:47 +02:00
.PP
2010-04-28 15:06:11 +02:00
You can use
\fB myisam_ftdump\fR
to generate a list of index entries in order of frequency of occurrence like this:
.sp
.if n \{ \
.RS 4
. \}
.nf
shell> \fB myisam_ftdump \- c mytexttable 1 | sort \- r\fR
.fi
.if n \{ \
.RE
. \}
.PP
2009-05-25 11:59:47 +02:00
\fB myisam_ftdump\fR
2009-09-16 14:03:18 +02:00
supports the following options:
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" myisam_ftdump: help option
. \" help option: myisam_ftdump
2009-05-25 11:59:47 +02:00
\fB \- \- help\fR ,
\fB \- h\fR
\fB \- ?\fR
.sp
2009-09-16 14:03:18 +02:00
Display a help message and exit\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" myisam_ftdump: count option
. \" count option: myisam_ftdump
2009-05-25 11:59:47 +02:00
\fB \- \- count\fR ,
\fB \- c\fR
.sp
2009-09-16 14:03:18 +02:00
Calculate per\- word statistics (counts and global weights)\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" myisam_ftdump: dump option
. \" dump option: myisam_ftdump
2009-05-25 11:59:47 +02:00
\fB \- \- dump\fR ,
\fB \- d\fR
.sp
2009-09-16 14:03:18 +02:00
Dump the index, including data offsets and word weights\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" myisam_ftdump: length option
. \" length option: myisam_ftdump
2009-05-25 11:59:47 +02:00
\fB \- \- length\fR ,
\fB \- l\fR
.sp
2009-09-16 14:03:18 +02:00
Report the length distribution\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" myisam_ftdump: stats option
. \" stats option: myisam_ftdump
2009-05-25 11:59:47 +02:00
\fB \- \- stats\fR ,
\fB \- s\fR
.sp
2009-09-16 14:03:18 +02:00
Report global index statistics\& . This is the default operation if no other operation is specified\& .
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
. \" myisam_ftdump: verbose option
. \" verbose option: myisam_ftdump
2009-05-25 11:59:47 +02:00
\fB \- \- verbose\fR ,
\fB \- v\fR
.sp
2009-09-16 14:03:18 +02:00
Verbose mode\& . Print more output about what the program does\& .
.RE
2009-05-25 11:59:47 +02:00
.SH "COPYRIGHT"
2009-09-16 14:03:18 +02:00
.br
2009-05-25 11:59:47 +02:00
.PP
2024-09-03 19:15:59 +02:00
Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc., 2010-2024 MariaDB Foundation
2009-05-25 11:59:47 +02:00
.PP
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.
.PP
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.
.PP
2019-05-11 21:29:06 +03:00
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-1335 USA or see http://www.gnu.org/licenses/.
2009-09-16 14:03:18 +02:00
.sp
2009-05-25 11:59:47 +02:00
.SH "SEE ALSO"
2015-09-09 14:32:52 +02:00
For more information, please refer to the MariaDB Knowledge Base, available online at https://mariadb.com/kb/
2009-05-25 11:59:47 +02:00
.SH AUTHOR
2015-09-09 14:32:52 +02:00
MariaDB Foundation (http://www.mariadb.org/).