본문 바로가기
Database/MYSQL

myisamchk Options

by 반화넬 2017. 3. 17.
반응형

Table 5.19 myisamchk Options

FormatDescription
--analyzeAnalyze the distribution of key values
--backupMake a backup of the .MYD file as file_name-time.BAK
--block-searchFind the record that a block at the given offset belongs to
--checkCheck the table for errors
--check-only-changedCheck only tables that have changed since the last check
--correct-checksumCorrect the checksum information for the table
--data-file-lengthMaximum length of the data file (when re-creating data file when it is full)
--debugWrite debugging log
--decode_bitsDecode_bits
--defaults-extra-fileRead named option file in addition to usual option files
--defaults-fileRead only named option file
--defaults-group-suffixOption group suffix value
--descriptionPrint some descriptive information about the table
--extend-checkDo very thorough table check or repair that tries to recover every possible row from the data file
--fastCheck only tables that haven't been closed properly
--forceDo a repair operation automatically if myisamchk finds any errors in the table
--forceOverwrite old temporary files. For use with the -r or -o option
--ft_max_word_lenMaximum word length for FULLTEXT indexes
--ft_min_word_lenMinimum word length for FULLTEXT indexes
--ft_stopword_fileUse stopwords from this file instead of built-in list
--HELPDisplay help message and exit
--helpDisplay help message and exit
--informationPrint informational statistics about the table that is checked
--key_buffer_sizeSize of buffer used for index blocks for MyISAM tables
--keys-usedA bit-value that indicates which indexes to update
--max-record-lengthSkip rows larger than the given length if myisamchk cannot allocate memory to hold them
--medium-checkDo a check that is faster than an --extend-check operation
--myisam_block_sizeBlock size to be used for MyISAM index pages
--myisam_sort_buffer_sizeThe buffer that is allocated when sorting the index when doing a REPAIR or when creating indexes with CREATE INDEX or ALTER TABLE
--no-defaultsRead no option files
--parallel-recoverUses the same technique as -r and -n, but creates all the keys in parallel, using different threads (beta)
--print-defaultsPrint default options
--quickAchieve a faster repair by not modifying the data file.
--read_buffer_sizeEach thread that does a sequential scan allocates a buffer of this size for each table it scans
--read-onlyDo not mark the table as checked
--recoverDo a repair that can fix almost any problem except unique keys that aren't unique
--safe-recoverDo a repair using an old recovery method that reads through all rows in order and updates all index trees based on the rows found
--set-auto-incrementForce AUTO_INCREMENT numbering for new records to start at the given value
--set-collationSpecify the collation to use for sorting table indexes
--silentSilent mode
--sort_buffer_sizeThe buffer that is allocated when sorting the index when doing a REPAIR or when creating indexes with CREATE INDEX or ALTER TABLE
--sort-indexSort the index tree blocks in high-low order
--sort_key_blockssort_key_blocks
--sort-recordsSort records according to a particular index
--sort-recoverForce myisamchk to use sorting to resolve the keys even if the temporary files would be very large
--stats_methodSpecifies how MyISAM index statistics collection code should treat NULLs
--tmpdirPath of the directory to be used for storing temporary files
--unpackUnpack a table that was packed with myisampack
--update-stateStore information in the .MYI file to indicate when the table was checked and whether the table crashed
--verboseVerbose mode
--versionDisplay version information and exit
--write_buffer_sizeWrite buffer size


반응형