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.

848 lines
20 KiB

  1. '\" t
  2. .\" Title: \fBmyisampack\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 "\FBMYISAMPACK\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. .\" myisampack
  22. .\" compressed tables
  23. .\" tables: compressed
  24. .\" MyISAM: compressed tables
  25. .SH "NAME"
  26. myisampack \- generate compressed, read\-only MyISAM tables
  27. .SH "SYNOPSIS"
  28. .HP \w'\fBmyisampack\ [\fR\fB\fIoptions\fR\fR\fB]\ \fR\fB\fIfile_name\fR\fR\fB\ \&.\&.\&.\fR\ 'u
  29. \fBmyisampack [\fR\fB\fIoptions\fR\fR\fB] \fR\fB\fIfile_name\fR\fR\fB \&.\&.\&.\fR
  30. .SH "DESCRIPTION"
  31. .PP
  32. The
  33. \fBmyisampack\fR
  34. utility compresses
  35. MyISAM
  36. tables\&.
  37. \fBmyisampack\fR
  38. works by compressing each column in the table separately\&. Usually,
  39. \fBmyisampack\fR
  40. packs the data file 40%\(en70%\&.
  41. .PP
  42. When the table is used later, the server reads into memory the information needed to decompress columns\&. This results in much better performance when accessing individual rows, because you only have to uncompress exactly one row\&.
  43. .PP
  44. MySQL uses
  45. mmap()
  46. when possible to perform memory mapping on compressed tables\&. If
  47. mmap()
  48. does not work, MySQL falls back to normal read/write file operations\&.
  49. .PP
  50. Please note the following:
  51. .sp
  52. .RS 4
  53. .ie n \{\
  54. \h'-04'\(bu\h'+03'\c
  55. .\}
  56. .el \{\
  57. .sp -1
  58. .IP \(bu 2.3
  59. .\}
  60. If the
  61. \fBmysqld\fR
  62. server was invoked with external locking disabled, it is not a good idea to invoke
  63. \fBmyisampack\fR
  64. if the table might be updated by the server during the packing process\&. It is safest to compress tables with the server stopped\&.
  65. .RE
  66. .sp
  67. .RS 4
  68. .ie n \{\
  69. \h'-04'\(bu\h'+03'\c
  70. .\}
  71. .el \{\
  72. .sp -1
  73. .IP \(bu 2.3
  74. .\}
  75. After packing a table, it becomes read only\&. This is generally intended (such as when accessing packed tables on a CD)\&. Allowing writes to a packed table is on our TODO list, but with low priority\&.
  76. .RE
  77. .PP
  78. Invoke
  79. \fBmyisampack\fR
  80. like this:
  81. .sp
  82. .if n \{\
  83. .RS 4
  84. .\}
  85. .nf
  86. shell> \fBmyisampack [\fR\fB\fIoptions\fR\fR\fB] \fR\fB\fIfile_name\fR\fR\fB \&.\&.\&.\fR
  87. .fi
  88. .if n \{\
  89. .RE
  90. .\}
  91. .PP
  92. Each file name argument should be the name of an index (\&.MYI) file\&. If you are not in the database directory, you should specify the path name to the file\&. It is permissible to omit the
  93. \&.MYI
  94. extension\&.
  95. .PP
  96. After you compress a table with
  97. \fBmyisampack\fR, you should use
  98. \fBmyisamchk \-rq\fR
  99. to rebuild its indexes\&.
  100. \fBmyisamchk\fR(1)\&.
  101. .PP
  102. \fBmyisampack\fR
  103. supports the following options\&. It also reads option files and supports the options for processing them described at
  104. Section\ \&4.2.3.3.1, \(lqCommand-Line Options that Affect Option-File Handling\(rq\&.
  105. .sp
  106. .RS 4
  107. .ie n \{\
  108. \h'-04'\(bu\h'+03'\c
  109. .\}
  110. .el \{\
  111. .sp -1
  112. .IP \(bu 2.3
  113. .\}
  114. .\" myisampack: help option
  115. .\" help option: myisampack
  116. \fB\-\-help\fR,
  117. \fB\-?\fR
  118. .sp
  119. Display a help message and exit\&.
  120. .RE
  121. .sp
  122. .RS 4
  123. .ie n \{\
  124. \h'-04'\(bu\h'+03'\c
  125. .\}
  126. .el \{\
  127. .sp -1
  128. .IP \(bu 2.3
  129. .\}
  130. .\" myisampack: backup option
  131. .\" backup option: myisampack
  132. \fB\-\-backup\fR,
  133. \fB\-b\fR
  134. .sp
  135. Make a backup of each table\'s data file using the name
  136. \fItbl_name\fR\&.OLD\&.
  137. .RE
  138. .sp
  139. .RS 4
  140. .ie n \{\
  141. \h'-04'\(bu\h'+03'\c
  142. .\}
  143. .el \{\
  144. .sp -1
  145. .IP \(bu 2.3
  146. .\}
  147. .\" myisampack: character-sets-dir option
  148. .\" character-sets-dir option: myisampack
  149. \fB\-\-character\-sets\-dir=\fR\fB\fIpath\fR\fR
  150. .sp
  151. The directory where character sets are installed\&. See
  152. Section\ \&9.5, \(lqCharacter Set Configuration\(rq\&.
  153. .RE
  154. .sp
  155. .RS 4
  156. .ie n \{\
  157. \h'-04'\(bu\h'+03'\c
  158. .\}
  159. .el \{\
  160. .sp -1
  161. .IP \(bu 2.3
  162. .\}
  163. .\" myisampack: debug option
  164. .\" debug option: myisampack
  165. \fB\-\-debug[=\fR\fB\fIdebug_options\fR\fR\fB]\fR,
  166. \fB\-# [\fR\fB\fIdebug_options\fR\fR\fB]\fR
  167. .sp
  168. Write a debugging log\&. A typical
  169. \fIdebug_options\fR
  170. string is
  171. \'d:t:o,\fIfile_name\fR\'\&. The default is
  172. \'d:t:o\'\&.
  173. .RE
  174. .sp
  175. .RS 4
  176. .ie n \{\
  177. \h'-04'\(bu\h'+03'\c
  178. .\}
  179. .el \{\
  180. .sp -1
  181. .IP \(bu 2.3
  182. .\}
  183. .\" myisampack: force option
  184. .\" force option: myisampack
  185. \fB\-\-force\fR,
  186. \fB\-f\fR
  187. .sp
  188. Produce a packed table even if it becomes larger than the original or if the intermediate file from an earlier invocation of
  189. \fBmyisampack\fR
  190. exists\&. (\fBmyisampack\fR
  191. creates an intermediate file named
  192. \fItbl_name\fR\&.TMD
  193. in the database directory while it compresses the table\&. If you kill
  194. \fBmyisampack\fR, the
  195. \&.TMD
  196. file might not be deleted\&.) Normally,
  197. \fBmyisampack\fR
  198. exits with an error if it finds that
  199. \fItbl_name\fR\&.TMD
  200. exists\&. With
  201. \fB\-\-force\fR,
  202. \fBmyisampack\fR
  203. packs the table anyway\&.
  204. .RE
  205. .sp
  206. .RS 4
  207. .ie n \{\
  208. \h'-04'\(bu\h'+03'\c
  209. .\}
  210. .el \{\
  211. .sp -1
  212. .IP \(bu 2.3
  213. .\}
  214. .\" myisampack: join option
  215. .\" join option: myisampack
  216. \fB\-\-join=\fR\fB\fIbig_tbl_name\fR\fR,
  217. \fB\-j \fR\fB\fIbig_tbl_name\fR\fR
  218. .sp
  219. Join all tables named on the command line into a single packed table
  220. \fIbig_tbl_name\fR\&. All tables that are to be combined
  221. \fImust\fR
  222. have identical structure (same column names and types, same indexes, and so forth)\&.
  223. .sp
  224. \fIbig_tbl_name\fR
  225. must not exist prior to the join operation\&. All source tables named on the command line to be merged into
  226. \fIbig_tbl_name\fR
  227. must exist\&. The source tables are read for the join operation but not modified\&. The join operation does not create a
  228. \&.frm
  229. file for
  230. \fIbig_tbl_name\fR, so after the join operation finishes, copy the
  231. \&.frm
  232. file from one of the source tables and name it
  233. \fIbig_tbl_name\fR\&.frm\&.
  234. .RE
  235. .sp
  236. .RS 4
  237. .ie n \{\
  238. \h'-04'\(bu\h'+03'\c
  239. .\}
  240. .el \{\
  241. .sp -1
  242. .IP \(bu 2.3
  243. .\}
  244. .\" myisampack: silent option
  245. .\" silent option: myisampack
  246. \fB\-\-silent\fR,
  247. \fB\-s\fR
  248. .sp
  249. Silent mode\&. Write output only when errors occur\&.
  250. .RE
  251. .sp
  252. .RS 4
  253. .ie n \{\
  254. \h'-04'\(bu\h'+03'\c
  255. .\}
  256. .el \{\
  257. .sp -1
  258. .IP \(bu 2.3
  259. .\}
  260. .\" myisampack: test option
  261. .\" test option: myisampack
  262. \fB\-\-test\fR,
  263. \fB\-t\fR
  264. .sp
  265. Do not actually pack the table, just test packing it\&.
  266. .RE
  267. .sp
  268. .RS 4
  269. .ie n \{\
  270. \h'-04'\(bu\h'+03'\c
  271. .\}
  272. .el \{\
  273. .sp -1
  274. .IP \(bu 2.3
  275. .\}
  276. .\" myisampack: tmpdir option
  277. .\" tmpdir option: myisampack
  278. \fB\-\-tmpdir=\fR\fB\fIpath\fR\fR,
  279. \fB\-T \fR\fB\fIpath\fR\fR
  280. .sp
  281. Use the named directory as the location where
  282. \fBmyisampack\fR
  283. creates temporary files\&.
  284. .RE
  285. .sp
  286. .RS 4
  287. .ie n \{\
  288. \h'-04'\(bu\h'+03'\c
  289. .\}
  290. .el \{\
  291. .sp -1
  292. .IP \(bu 2.3
  293. .\}
  294. .\" myisampack: verbose option
  295. .\" verbose option: myisampack
  296. \fB\-\-verbose\fR,
  297. \fB\-v\fR
  298. .sp
  299. Verbose mode\&. Write information about the progress of the packing operation and its result\&.
  300. .RE
  301. .sp
  302. .RS 4
  303. .ie n \{\
  304. \h'-04'\(bu\h'+03'\c
  305. .\}
  306. .el \{\
  307. .sp -1
  308. .IP \(bu 2.3
  309. .\}
  310. .\" myisampack: version option
  311. .\" version option: myisampack
  312. \fB\-\-version\fR,
  313. \fB\-V\fR
  314. .sp
  315. Display version information and exit\&.
  316. .RE
  317. .sp
  318. .RS 4
  319. .ie n \{\
  320. \h'-04'\(bu\h'+03'\c
  321. .\}
  322. .el \{\
  323. .sp -1
  324. .IP \(bu 2.3
  325. .\}
  326. .\" myisampack: wait option
  327. .\" wait option: myisampack
  328. \fB\-\-wait\fR,
  329. \fB\-w\fR
  330. .sp
  331. Wait and retry if the table is in use\&. If the
  332. \fBmysqld\fR
  333. server was invoked with external locking disabled, it is not a good idea to invoke
  334. \fBmyisampack\fR
  335. if the table might be updated by the server during the packing process\&.
  336. .RE
  337. .\" examples: compressed tables
  338. .PP
  339. The following sequence of commands illustrates a typical table compression session:
  340. .sp
  341. .if n \{\
  342. .RS 4
  343. .\}
  344. .nf
  345. shell> \fBls \-l station\&.*\fR
  346. \-rw\-rw\-r\-\- 1 monty my 994128 Apr 17 19:00 station\&.MYD
  347. \-rw\-rw\-r\-\- 1 monty my 53248 Apr 17 19:00 station\&.MYI
  348. \-rw\-rw\-r\-\- 1 monty my 5767 Apr 17 19:00 station\&.frm
  349. shell> \fBmyisamchk \-dvv station\fR
  350. MyISAM file: station
  351. Isam\-version: 2
  352. Creation time: 1996\-03\-13 10:08:58
  353. Recover time: 1997\-02\-02 3:06:43
  354. Data records: 1192 Deleted blocks: 0
  355. Datafile parts: 1192 Deleted data: 0
  356. Datafile pointer (bytes): 2 Keyfile pointer (bytes): 2
  357. Max datafile length: 54657023 Max keyfile length: 33554431
  358. Recordlength: 834
  359. Record format: Fixed length
  360. table description:
  361. Key Start Len Index Type Root Blocksize Rec/key
  362. 1 2 4 unique unsigned long 1024 1024 1
  363. 2 32 30 multip\&. text 10240 1024 1
  364. Field Start Length Type
  365. 1 1 1
  366. 2 2 4
  367. 3 6 4
  368. 4 10 1
  369. 5 11 20
  370. 6 31 1
  371. 7 32 30
  372. 8 62 35
  373. 9 97 35
  374. 10 132 35
  375. 11 167 4
  376. 12 171 16
  377. 13 187 35
  378. 14 222 4
  379. 15 226 16
  380. 16 242 20
  381. 17 262 20
  382. 18 282 20
  383. 19 302 30
  384. 20 332 4
  385. 21 336 4
  386. 22 340 1
  387. 23 341 8
  388. 24 349 8
  389. 25 357 8
  390. 26 365 2
  391. 27 367 2
  392. 28 369 4
  393. 29 373 4
  394. 30 377 1
  395. 31 378 2
  396. 32 380 8
  397. 33 388 4
  398. 34 392 4
  399. 35 396 4
  400. 36 400 4
  401. 37 404 1
  402. 38 405 4
  403. 39 409 4
  404. 40 413 4
  405. 41 417 4
  406. 42 421 4
  407. 43 425 4
  408. 44 429 20
  409. 45 449 30
  410. 46 479 1
  411. 47 480 1
  412. 48 481 79
  413. 49 560 79
  414. 50 639 79
  415. 51 718 79
  416. 52 797 8
  417. 53 805 1
  418. 54 806 1
  419. 55 807 20
  420. 56 827 4
  421. 57 831 4
  422. shell> \fBmyisampack station\&.MYI\fR
  423. Compressing station\&.MYI: (1192 records)
  424. \- Calculating statistics
  425. normal: 20 empty\-space: 16 empty\-zero: 12 empty\-fill: 11
  426. pre\-space: 0 end\-space: 12 table\-lookups: 5 zero: 7
  427. Original trees: 57 After join: 17
  428. \- Compressing file
  429. 87\&.14%
  430. Remember to run myisamchk \-rq on compressed tables
  431. shell> \fBls \-l station\&.*\fR
  432. \-rw\-rw\-r\-\- 1 monty my 127874 Apr 17 19:00 station\&.MYD
  433. \-rw\-rw\-r\-\- 1 monty my 55296 Apr 17 19:04 station\&.MYI
  434. \-rw\-rw\-r\-\- 1 monty my 5767 Apr 17 19:00 station\&.frm
  435. shell> \fBmyisamchk \-dvv station\fR
  436. MyISAM file: station
  437. Isam\-version: 2
  438. Creation time: 1996\-03\-13 10:08:58
  439. Recover time: 1997\-04\-17 19:04:26
  440. Data records: 1192 Deleted blocks: 0
  441. Datafile parts: 1192 Deleted data: 0
  442. Datafile pointer (bytes): 3 Keyfile pointer (bytes): 1
  443. Max datafile length: 16777215 Max keyfile length: 131071
  444. Recordlength: 834
  445. Record format: Compressed
  446. table description:
  447. Key Start Len Index Type Root Blocksize Rec/key
  448. 1 2 4 unique unsigned long 10240 1024 1
  449. 2 32 30 multip\&. text 54272 1024 1
  450. Field Start Length Type Huff tree Bits
  451. 1 1 1 constant 1 0
  452. 2 2 4 zerofill(1) 2 9
  453. 3 6 4 no zeros, zerofill(1) 2 9
  454. 4 10 1 3 9
  455. 5 11 20 table\-lookup 4 0
  456. 6 31 1 3 9
  457. 7 32 30 no endspace, not_always 5 9
  458. 8 62 35 no endspace, not_always, no empty 6 9
  459. 9 97 35 no empty 7 9
  460. 10 132 35 no endspace, not_always, no empty 6 9
  461. 11 167 4 zerofill(1) 2 9
  462. 12 171 16 no endspace, not_always, no empty 5 9
  463. 13 187 35 no endspace, not_always, no empty 6 9
  464. 14 222 4 zerofill(1) 2 9
  465. 15 226 16 no endspace, not_always, no empty 5 9
  466. 16 242 20 no endspace, not_always 8 9
  467. 17 262 20 no endspace, no empty 8 9
  468. 18 282 20 no endspace, no empty 5 9
  469. 19 302 30 no endspace, no empty 6 9
  470. 20 332 4 always zero 2 9
  471. 21 336 4 always zero 2 9
  472. 22 340 1 3 9
  473. 23 341 8 table\-lookup 9 0
  474. 24 349 8 table\-lookup 10 0
  475. 25 357 8 always zero 2 9
  476. 26 365 2 2 9
  477. 27 367 2 no zeros, zerofill(1) 2 9
  478. 28 369 4 no zeros, zerofill(1) 2 9
  479. 29 373 4 table\-lookup 11 0
  480. 30 377 1 3 9
  481. 31 378 2 no zeros, zerofill(1) 2 9
  482. 32 380 8 no zeros 2 9
  483. 33 388 4 always zero 2 9
  484. 34 392 4 table\-lookup 12 0
  485. 35 396 4 no zeros, zerofill(1) 13 9
  486. 36 400 4 no zeros, zerofill(1) 2 9
  487. 37 404 1 2 9
  488. 38 405 4 no zeros 2 9
  489. 39 409 4 always zero 2 9
  490. 40 413 4 no zeros 2 9
  491. 41 417 4 always zero 2 9
  492. 42 421 4 no zeros 2 9
  493. 43 425 4 always zero 2 9
  494. 44 429 20 no empty 3 9
  495. 45 449 30 no empty 3 9
  496. 46 479 1 14 4
  497. 47 480 1 14 4
  498. 48 481 79 no endspace, no empty 15 9
  499. 49 560 79 no empty 2 9
  500. 50 639 79 no empty 2 9
  501. 51 718 79 no endspace 16 9
  502. 52 797 8 no empty 2 9
  503. 53 805 1 17 1
  504. 54 806 1 3 9
  505. 55 807 20 no empty 3 9
  506. 56 827 4 no zeros, zerofill(2) 2 9
  507. 57 831 4 no zeros, zerofill(1) 2 9
  508. .fi
  509. .if n \{\
  510. .RE
  511. .\}
  512. .PP
  513. \fBmyisampack\fR
  514. displays the following kinds of information:
  515. .sp
  516. .RS 4
  517. .ie n \{\
  518. \h'-04'\(bu\h'+03'\c
  519. .\}
  520. .el \{\
  521. .sp -1
  522. .IP \(bu 2.3
  523. .\}
  524. normal
  525. .sp
  526. The number of columns for which no extra packing is used\&.
  527. .RE
  528. .sp
  529. .RS 4
  530. .ie n \{\
  531. \h'-04'\(bu\h'+03'\c
  532. .\}
  533. .el \{\
  534. .sp -1
  535. .IP \(bu 2.3
  536. .\}
  537. empty\-space
  538. .sp
  539. The number of columns containing values that are only spaces\&. These occupy one bit\&.
  540. .RE
  541. .sp
  542. .RS 4
  543. .ie n \{\
  544. \h'-04'\(bu\h'+03'\c
  545. .\}
  546. .el \{\
  547. .sp -1
  548. .IP \(bu 2.3
  549. .\}
  550. empty\-zero
  551. .sp
  552. The number of columns containing values that are only binary zeros\&. These occupy one bit\&.
  553. .RE
  554. .sp
  555. .RS 4
  556. .ie n \{\
  557. \h'-04'\(bu\h'+03'\c
  558. .\}
  559. .el \{\
  560. .sp -1
  561. .IP \(bu 2.3
  562. .\}
  563. empty\-fill
  564. .sp
  565. The number of integer columns that do not occupy the full byte range of their type\&. These are changed to a smaller type\&. For example, a
  566. BIGINT
  567. column (eight bytes) can be stored as a
  568. TINYINT
  569. column (one byte) if all its values are in the range from
  570. \-128
  571. to
  572. 127\&.
  573. .RE
  574. .sp
  575. .RS 4
  576. .ie n \{\
  577. \h'-04'\(bu\h'+03'\c
  578. .\}
  579. .el \{\
  580. .sp -1
  581. .IP \(bu 2.3
  582. .\}
  583. pre\-space
  584. .sp
  585. The number of decimal columns that are stored with leading spaces\&. In this case, each value contains a count for the number of leading spaces\&.
  586. .RE
  587. .sp
  588. .RS 4
  589. .ie n \{\
  590. \h'-04'\(bu\h'+03'\c
  591. .\}
  592. .el \{\
  593. .sp -1
  594. .IP \(bu 2.3
  595. .\}
  596. end\-space
  597. .sp
  598. The number of columns that have a lot of trailing spaces\&. In this case, each value contains a count for the number of trailing spaces\&.
  599. .RE
  600. .sp
  601. .RS 4
  602. .ie n \{\
  603. \h'-04'\(bu\h'+03'\c
  604. .\}
  605. .el \{\
  606. .sp -1
  607. .IP \(bu 2.3
  608. .\}
  609. table\-lookup
  610. .sp
  611. The column had only a small number of different values, which were converted to an
  612. ENUM
  613. before Huffman compression\&.
  614. .RE
  615. .sp
  616. .RS 4
  617. .ie n \{\
  618. \h'-04'\(bu\h'+03'\c
  619. .\}
  620. .el \{\
  621. .sp -1
  622. .IP \(bu 2.3
  623. .\}
  624. zero
  625. .sp
  626. The number of columns for which all values are zero\&.
  627. .RE
  628. .sp
  629. .RS 4
  630. .ie n \{\
  631. \h'-04'\(bu\h'+03'\c
  632. .\}
  633. .el \{\
  634. .sp -1
  635. .IP \(bu 2.3
  636. .\}
  637. Original trees
  638. .sp
  639. The initial number of Huffman trees\&.
  640. .RE
  641. .sp
  642. .RS 4
  643. .ie n \{\
  644. \h'-04'\(bu\h'+03'\c
  645. .\}
  646. .el \{\
  647. .sp -1
  648. .IP \(bu 2.3
  649. .\}
  650. After join
  651. .sp
  652. The number of distinct Huffman trees left after joining trees to save some header space\&.
  653. .RE
  654. .PP
  655. After a table has been compressed, the
  656. Field
  657. lines displayed by
  658. \fBmyisamchk \-dvv\fR
  659. include additional information about each column:
  660. .sp
  661. .RS 4
  662. .ie n \{\
  663. \h'-04'\(bu\h'+03'\c
  664. .\}
  665. .el \{\
  666. .sp -1
  667. .IP \(bu 2.3
  668. .\}
  669. Type
  670. .sp
  671. The data type\&. The value may contain any of the following descriptors:
  672. .sp
  673. .RS 4
  674. .ie n \{\
  675. \h'-04'\(bu\h'+03'\c
  676. .\}
  677. .el \{\
  678. .sp -1
  679. .IP \(bu 2.3
  680. .\}
  681. constant
  682. .sp
  683. All rows have the same value\&.
  684. .RE
  685. .sp
  686. .RS 4
  687. .ie n \{\
  688. \h'-04'\(bu\h'+03'\c
  689. .\}
  690. .el \{\
  691. .sp -1
  692. .IP \(bu 2.3
  693. .\}
  694. no endspace
  695. .sp
  696. Do not store endspace\&.
  697. .RE
  698. .sp
  699. .RS 4
  700. .ie n \{\
  701. \h'-04'\(bu\h'+03'\c
  702. .\}
  703. .el \{\
  704. .sp -1
  705. .IP \(bu 2.3
  706. .\}
  707. no endspace, not_always
  708. .sp
  709. Do not store endspace and do not do endspace compression for all values\&.
  710. .RE
  711. .sp
  712. .RS 4
  713. .ie n \{\
  714. \h'-04'\(bu\h'+03'\c
  715. .\}
  716. .el \{\
  717. .sp -1
  718. .IP \(bu 2.3
  719. .\}
  720. no endspace, no empty
  721. .sp
  722. Do not store endspace\&. Do not store empty values\&.
  723. .RE
  724. .sp
  725. .RS 4
  726. .ie n \{\
  727. \h'-04'\(bu\h'+03'\c
  728. .\}
  729. .el \{\
  730. .sp -1
  731. .IP \(bu 2.3
  732. .\}
  733. table\-lookup
  734. .sp
  735. The column was converted to an
  736. ENUM\&.
  737. .RE
  738. .sp
  739. .RS 4
  740. .ie n \{\
  741. \h'-04'\(bu\h'+03'\c
  742. .\}
  743. .el \{\
  744. .sp -1
  745. .IP \(bu 2.3
  746. .\}
  747. zerofill(\fIN\fR)
  748. .sp
  749. The most significant
  750. \fIN\fR
  751. bytes in the value are always 0 and are not stored\&.
  752. .RE
  753. .sp
  754. .RS 4
  755. .ie n \{\
  756. \h'-04'\(bu\h'+03'\c
  757. .\}
  758. .el \{\
  759. .sp -1
  760. .IP \(bu 2.3
  761. .\}
  762. no zeros
  763. .sp
  764. Do not store zeros\&.
  765. .RE
  766. .sp
  767. .RS 4
  768. .ie n \{\
  769. \h'-04'\(bu\h'+03'\c
  770. .\}
  771. .el \{\
  772. .sp -1
  773. .IP \(bu 2.3
  774. .\}
  775. always zero
  776. .sp
  777. Zero values are stored using one bit\&.
  778. .RE
  779. .RE
  780. .sp
  781. .RS 4
  782. .ie n \{\
  783. \h'-04'\(bu\h'+03'\c
  784. .\}
  785. .el \{\
  786. .sp -1
  787. .IP \(bu 2.3
  788. .\}
  789. Huff tree
  790. .sp
  791. The number of the Huffman tree associated with the column\&.
  792. .RE
  793. .sp
  794. .RS 4
  795. .ie n \{\
  796. \h'-04'\(bu\h'+03'\c
  797. .\}
  798. .el \{\
  799. .sp -1
  800. .IP \(bu 2.3
  801. .\}
  802. Bits
  803. .sp
  804. The number of bits used in the Huffman tree\&.
  805. .RE
  806. .PP
  807. After you run
  808. \fBmyisampack\fR, you must run
  809. \fBmyisamchk\fR
  810. to re\-create any indexes\&. At this time, you can also sort the index blocks and create statistics needed for the MySQL optimizer to work more efficiently:
  811. .sp
  812. .if n \{\
  813. .RS 4
  814. .\}
  815. .nf
  816. shell> \fBmyisamchk \-rq \-\-sort\-index \-\-analyze \fR\fB\fItbl_name\fR\fR\fB\&.MYI\fR
  817. .fi
  818. .if n \{\
  819. .RE
  820. .\}
  821. .PP
  822. After you have installed the packed table into the MySQL database directory, you should execute
  823. \fBmysqladmin flush\-tables\fR
  824. to force
  825. \fBmysqld\fR
  826. to start using the new table\&.
  827. .PP
  828. To unpack a packed table, use the
  829. \fB\-\-unpack\fR
  830. option to
  831. \fBmyisamchk\fR\&.
  832. .SH "COPYRIGHT"
  833. .br
  834. .PP
  835. Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc.
  836. .PP
  837. 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.
  838. .PP
  839. 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.
  840. .PP
  841. 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/.
  842. .sp
  843. .SH "SEE ALSO"
  844. For more information, please refer to the MySQL Reference Manual,
  845. which may already be installed locally and which is also available
  846. online at http://dev.mysql.com/doc/.
  847. .SH AUTHOR
  848. Sun Microsystems, Inc. (http://www.mysql.com/).