myisam.lib.php 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. if (! defined('PHPMYADMIN')) {
  12. exit;
  13. }
  14. /**
  15. * The MyISAM storage engine
  16. *
  17. * @package PhpMyAdmin-Engines
  18. */
  19. class PMA_StorageEngine_myisam extends PMA_StorageEngine
  20. {
  21. /**
  22. * Returns array with variable names dedicated to MyISAM storage engine
  23. *
  24. * @return array variable names
  25. */
  26. function getVariables()
  27. {
  28. return array(
  29. 'myisam_data_pointer_size' => array(
  30. 'title' => __('Data pointer size'),
  31. 'desc' => __('The default pointer size in bytes, to be used by CREATE TABLE for MyISAM tables when no MAX_ROWS option is specified.'),
  32. 'type' => PMA_ENGINE_DETAILS_TYPE_SIZE,
  33. ),
  34. 'myisam_recover_options' => array(
  35. 'title' => __('Automatic recovery mode'),
  36. 'desc' => __('The mode for automatic recovery of crashed MyISAM tables, as set via the --myisam-recover server startup option.'),
  37. ),
  38. 'myisam_max_sort_file_size' => array(
  39. 'title' => __('Maximum size for temporary sort files'),
  40. '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).'),
  41. 'type' => PMA_ENGINE_DETAILS_TYPE_SIZE,
  42. ),
  43. 'myisam_max_extra_sort_file_size' => array(
  44. 'title' => __('Maximum size for temporary files on index creation'),
  45. '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.'),
  46. 'type' => PMA_ENGINE_DETAILS_TYPE_SIZE,
  47. ),
  48. 'myisam_repair_threads' => array(
  49. 'title' => __('Repair threads'),
  50. '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.'),
  51. 'type' => PMA_ENGINE_DETAILS_TYPE_NUMERIC,
  52. ),
  53. 'myisam_sort_buffer_size' => array(
  54. 'title' => __('Sort buffer size'),
  55. 'desc' => __('The buffer that is allocated when sorting MyISAM indexes during a REPAIR TABLE or when creating indexes with CREATE INDEX or ALTER TABLE.'),
  56. 'type' => PMA_ENGINE_DETAILS_TYPE_SIZE,
  57. ),
  58. 'myisam_stats_method' => array(
  59. ),
  60. 'delay_key_write' => array(
  61. ),
  62. 'bulk_insert_buffer_size' => array(
  63. 'type' => PMA_ENGINE_DETAILS_TYPE_SIZE,
  64. ),
  65. 'skip_external_locking' => array(
  66. ),
  67. );
  68. }
  69. }
  70. ?>