myisam.lib.php 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <?php
  2. /* vim: set expandtab sw=4 ts=4 sts=4: */
  3. /**
  4. * The MyISAM storage engine
  5. *
  6. * @package PhpMyAdmin-Engines
  7. */
  8. if (! defined('PHPMYADMIN')) {
  9. exit;
  10. }
  11. /**
  12. * The MyISAM storage engine
  13. *
  14. * @package PhpMyAdmin-Engines
  15. */
  16. class PMA_StorageEngine_Myisam extends PMA_StorageEngine
  17. {
  18. /**
  19. * Returns array with variable names dedicated to MyISAM storage engine
  20. *
  21. * @return array variable names
  22. */
  23. public function getVariables()
  24. {
  25. return array(
  26. 'myisam_data_pointer_size' => array(
  27. 'title' => __('Data pointer size'),
  28. 'desc' => __('The default pointer size in bytes, to be used by CREATE TABLE for MyISAM tables when no MAX_ROWS option is specified.'),
  29. 'type' => PMA_ENGINE_DETAILS_TYPE_SIZE,
  30. ),
  31. 'myisam_recover_options' => array(
  32. 'title' => __('Automatic recovery mode'),
  33. 'desc' => __('The mode for automatic recovery of crashed MyISAM tables, as set via the --myisam-recover server startup option.'),
  34. ),
  35. 'myisam_max_sort_file_size' => array(
  36. 'title' => __('Maximum size for temporary sort files'),
  37. 'desc' => __('The maximum size of the temporary file MySQL is allowed to use while re-creating a MyISAM index (during REPAIR TABLE, ALTER TABLE, or LOAD DATA INFILE).'),
  38. 'type' => PMA_ENGINE_DETAILS_TYPE_SIZE,
  39. ),
  40. 'myisam_max_extra_sort_file_size' => array(
  41. 'title' => __('Maximum size for temporary files on index creation'),
  42. 'desc' => __('If the temporary file used for fast MyISAM index creation would be larger than using the key cache by the amount specified here, prefer the key cache method.'),
  43. 'type' => PMA_ENGINE_DETAILS_TYPE_SIZE,
  44. ),
  45. 'myisam_repair_threads' => array(
  46. 'title' => __('Repair threads'),
  47. 'desc' => __('If this value is greater than 1, MyISAM table indexes are created in parallel (each index in its own thread) during the repair by sorting process.'),
  48. 'type' => PMA_ENGINE_DETAILS_TYPE_NUMERIC,
  49. ),
  50. 'myisam_sort_buffer_size' => array(
  51. 'title' => __('Sort buffer size'),
  52. 'desc' => __('The buffer that is allocated when sorting MyISAM indexes during a REPAIR TABLE or when creating indexes with CREATE INDEX or ALTER TABLE.'),
  53. 'type' => PMA_ENGINE_DETAILS_TYPE_SIZE,
  54. ),
  55. 'myisam_stats_method' => array(
  56. ),
  57. 'delay_key_write' => array(
  58. ),
  59. 'bulk_insert_buffer_size' => array(
  60. 'type' => PMA_ENGINE_DETAILS_TYPE_SIZE,
  61. ),
  62. 'skip_external_locking' => array(
  63. ),
  64. );
  65. }
  66. }
  67. ?>