myisamchk
Suppose also that the table has these data and index file sizes:
-rw-rw----
1 mysql
mysql
-rw-rw----
1 mysql
mysql
Example of
myisamchk -dvv
MyISAM file:
person
Record format:
Packed
Character set:
latin1_swedish_ci (8)
File-version:
1
Creation time:
2009-08-19 16:47:41
Recover time:
2009-08-19 16:47:56
Status:
checked,analyzed,optimized keys
Auto increment key:
Data records:
Datafile parts:
Datafile pointer (bytes):
Datafile length:
Max datafile length:
Recordlength:
table description:
Key Start Len Index
1
2
4
unique
2
6
20
multip. varchar prefix
27
20
3
48
3
multip. uint24 NULL
Field Start Length Nullpos Nullbit Type
1
1
1
2
2
4
3
6
21
4
27
21
5
48
3
1
6
51
3
1
Explanations for the types of information
index file. "Record" and "row" are synonymous, as are "field" and "column."
The initial part of the table description contains these values:
•
MyISAM file
Name of the
MyISAM
•
Record format
The format used to store table rows. The preceding examples use
values are
Compressed
as Dynamic.)
•
Chararacter set
The table default character set.
•
File-version
Version of
format. Currently always 1.
MyISAM
•
Creation time
When the data file was created.
•
Recover time
When the index/data file was last reconstructed.
•
Status
— MyISAM Table-Maintenance Utility
9347072 Aug 19 11:47 person.MYD
6066176 Aug 19 11:47 person.MYI
output:
1
Last value:
306688
Deleted blocks:
306688
Deleted data:
4
Keyfile pointer (bytes):
9347072
Keyfile length:
4294967294
Max keyfile length:
54
Type
Rec/key
long
varchar
no zeros
varchar
varchar
1
no zeros
2
no zeros
myisamchk
(index) file.
and Packed.
(Packed
327
306688
6066176
17179868159
Root
Blocksize
1
99328
512
3563520
512
306688
6065152
produces are given here. "Keyfile" refers to the
Fixed
corresponds to what
0
0
3
1024
1024
1024
length. Other possible
SHOW TABLE STATUS
reports
Need help?
Do you have a question about the 5.0 and is the answer not in the manual?
Questions and answers