# myisam\_ftdump

myisam\_ftdump is a utility for displaying information about [MyISAM](https://mariadb.com/docs/server/server-usage/storage-engines/myisam-storage-engine) [FULLTEXT](https://mariadb.com/docs/server/ha-and-performance/optimization-and-tuning/optimization-and-indexes/full-text-indexes) indexes. It will scan and dump the entire index, and can be a lengthy process.

If the server is running, make sure you run a [FLUSH TABLES](https://mariadb.com/docs/server/reference/sql-statements/administrative-sql-statements/flush-commands/flush) statement first.

## Usage

```
myisam_ftdump <table_name> <index_num>
```

The table\_name can be specified with or without the .MYI index extension.

The index number refers to the number of the index when the table was defined, starting at zero. For example, take the following table definition:

```
CREATE TABLE IF NOT EXISTS `employees_example` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `first_name` VARCHAR(30) NOT NULL,
  `last_name` VARCHAR(40) NOT NULL,
  `position` VARCHAR(25) NOT NULL,
  `home_address` VARCHAR(50) NOT NULL,
  `home_phone` VARCHAR(12) NOT NULL,
  `employee_code` VARCHAR(25) NOT NULL,
  `bio` text NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `employee_code` (`employee_code`),
  FULLTEXT (`bio`)
) ENGINE=MyISAM;
```

The fulltext index is `2`. The primary key is index `0`, and the unique key index `1`.

You can use *myisam\_ftdump* to generate a list of index entries in order of frequency of occurrence as follows:

```
myisam_ftdump -c mytexttable 1 | sort -r
```

## Options

| Option        | Description                                           |
| ------------- | ----------------------------------------------------- |
| -h, --help    | Display help and exit.                                |
| -?, --help    | Synonym for -h.                                       |
| -c, --count   | Calculate per-word stats (counts and global weights). |
| -d, --dump    | Dump index (incl. data offsets and word weights).     |
| -l, --length  | Report length distribution.                           |
| -s, --stats   | Report global stats.                                  |
| -v, --verbose | Be verbose.                                           |

<sub>*This page is licensed: CC BY-SA / Gnu FDL*</sub>

{% @marketo/form formId="4316" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mariadb.com/docs/server/clients-and-utilities/myisam-clients-and-utilities/myisam_ftdump.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
