PDF (A4) - 35.2Mb
Man Pages (TGZ) - 256.4Kb
Man Pages (Zip) - 361.2Kb
Info (Gzip) - 3.4Mb
Info (Zip) - 3.4Mb
MySQL Globalization
MySQL Information Schema
MySQL Installation Guide
MySQL and Linux/Unix
MySQL and macOS
MySQL Partitioning
MySQL Performance Schema
MySQL Replication
Using the MySQL Yum Repository
MySQL Restrictions and Limitations
Security in MySQL
MySQL and Solaris
Building MySQL from Source
Starting and Stopping MySQL
MySQL Tutorial
MySQL and Windows
MySQL NDB Cluster 7.5
To coalesce fragmented rows and eliminate wasted space that results from deleting or updating rows, runmyisamchk in recovery mode:
$> myisamchk -rtbl_name You can optimize a table in the same way by using theOPTIMIZE TABLE SQL statement.OPTIMIZE TABLE does a table repair and a key analysis, and also sorts the index tree so that key lookups are faster. There is also no possibility of unwanted interaction between a utility and the server, because the server does all the work when you useOPTIMIZE TABLE. SeeSection 13.7.2.4, “OPTIMIZE TABLE Statement”.
myisamchk has a number of other options that you can use to improve the performance of a table:
--analyzeor-a: Perform key distribution analysis. This improves join performance by enabling the join optimizer to better choose the order in which to join the tables and which indexes it should use.--sort-indexor-S: Sort the index blocks. This optimizes seeks and makes table scans that use indexes faster.--sort-records=orindex_num-R: Sort data rows according to a given index. This makes your data much more localized and may speed up range-basedindex_numSELECTandORDER BYoperations that use this index.
For a full description of all available options, seeSection 4.6.3, “myisamchk — MyISAM Table-Maintenance Utility”.
PDF (A4) - 35.2Mb
Man Pages (TGZ) - 256.4Kb
Man Pages (Zip) - 361.2Kb
Info (Gzip) - 3.4Mb
Info (Zip) - 3.4Mb
MySQL Globalization
MySQL Information Schema
MySQL Installation Guide
MySQL and Linux/Unix
MySQL and macOS
MySQL Partitioning
MySQL Performance Schema
MySQL Replication
Using the MySQL Yum Repository
MySQL Restrictions and Limitations
Security in MySQL
MySQL and Solaris
Building MySQL from Source
Starting and Stopping MySQL
MySQL Tutorial
MySQL and Windows
MySQL NDB Cluster 7.5