Oracle 5.0 Reference Manual page 346

Table of Contents

Advertisement

--sort-index
Sort the index tree blocks in high-low order. This optimizes seeks and makes table scans that use
indexes faster.
--sort-records=N
Sort records according to a particular index. This makes your data much more localized and may
speed up range-based
use this option to sort a table, it may be very slow.) To determine a table's index numbers, use
INDEX, which displays a table's indexes in the same order that
numbered beginning with 1.
If keys are not packed (PACK_KEYS=0), they have the same length, so when
moves records, it just overwrites record offsets in the index. If keys are packed (PACK_KEYS=1),
myisamchk
this case, re-creating indexes is faster than updating offsets for each index.)
4.6.3.5. Obtaining Table Information with
To obtain a description of a
output from these commands is explained later in this section.
myisamchk -d tbl_name
Runs
myisamchk
server with external locking disabled,
while it runs. However, because
risk of destroying data.
myisamchk -dv tbl_name
Adding
-v
Adding
-v
myisamchk -eis tbl_name
Shows only the most important information from a table. This operation is slow because it must read
the entire table.
myisamchk -eiv tbl_name
This is like -eis, but tells you what is being done.
The
tbl_name
described in
arguments can be given.
Suppose that a table named
included so that in the example output from
the output format more easily.)
CREATE TABLE person
(
id
last_name
first_name VARCHAR(20) NOT NULL,
birth
death
PRIMARY KEY (id),
INDEX (last_name, first_name),
INDEX (birth)
) MAX_ROWS = 1000000;
— MyISAM Table-Maintenance Utility
myisamchk
[326],
-S
[326],
-R N
and
SELECT
must unpack key blocks first, then re-create indexes and pack the key blocks again. (In
MyISAM
in "describe mode" to produce a description of your table. If you start the MySQL
myisamchk
runs
in verbose mode so that it produces more information about the table.
myisamchk
a second time produces even more information.
argument can be either the name of a
Section 4.6.3,
"myisamchk
person
INT NOT NULL AUTO_INCREMENT,
VARCHAR(20) NOT NULL,
DATE,
DATE,
operations that use this index. (The first time you
ORDER BY
myisamchk
table or statistics about it, use the commands shown here. The
may report an error for a table that is updated
myisamchk
does not change the table in describe mode, there is no
MyISAM
— MyISAM Table-Maintenance
has the following structure. (The
shown later, some values are smaller and fit
myisamchk
326
sees them. Indexes are
myisamchk
myisamchk
table or the name of its index file, as
Utility". Multiple
table option is
MAX_ROWS
SHOW
sorts and
tbl_name

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents