Advertisement
Guest User

L2 my.cnf

a guest
Feb 19th, 2013
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 1.47 KB | None | 0 0
  1.  
  2. [mysql]
  3.  
  4. # CLIENT #
  5. port                           = 3306
  6. socket                         = /var/run/mysqld/mysqld.sock
  7.  
  8. [mysqld]
  9.  
  10. # GENERAL #
  11. USER                           = mysql
  12. default_storage_engine         = MyISAM
  13. socket                         = /var/run/mysqld/mysqld.sock
  14. pid_file                       = /var/run/mysqld/mysqld.pid
  15.  
  16. # MyISAM #
  17. key_buffer_size                = 10G
  18. myisam_recover                 = FORCE,BACKUP
  19.  
  20. # SAFETY #
  21. max_allowed_packet             = 16M
  22. max_connect_errors             = 1000000
  23.  
  24. # DATA STORAGE #
  25. datadir = /mnt/storage2TB/MySQL/DATA/
  26.  
  27. # CACHES AND LIMITS #
  28. tmp_table_size = 2G
  29. max_heap_table_size = 3G
  30. query_cache_type               = 0
  31. query_cache_size               = 0
  32. max_connections = 2000
  33. thread_cache_size              = 500
  34. open_files_limit = 100535
  35. table_definition_cache         = 1024
  36. table_open_cache               = 1
  37.  
  38. # INNODB #
  39. innodb_flush_method = O_DSYNC
  40. innodb_log_files_in_group      = 2
  41. innodb_log_file_size           = 32M
  42. innodb_flush_log_at_trx_commit = 2
  43. innodb_file_per_table          = 1
  44. innodb_buffer_pool_size = 500M
  45.  
  46. # LOGGING #
  47. log_error                      = /var/lib/mysql/mysql-error.log
  48. log_queries_not_using_indexes  = 1
  49. slow_query_log                 = 1
  50. slow_query_log_file            = /var/lib/mysql/mysql-slow.log
  51.  
  52. max_delayed_threads = 600
  53. delayed_queue_size = 100000
  54.  
  55. myisam_sort_buffer_size = 2G
  56. concurrent_insert = ALWAYS
  57. myisam_max_sort_file_size = 100G
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement