Advertisement
Draven

my.cnf

Jan 26th, 2013
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Generated by Percona Configuration Wizard (http://tools.percona.com/) version REL5-20120208
  2. # Configuration name server generated for dravenlon@gmail.com at 2013-01-26 16:00:16
  3.  
  4. [mysql]
  5.  
  6. # CLIENT #
  7. port = 3306
  8. socket = /var/lib/mysql/mysql.sock
  9.  
  10. [mysqld]
  11.  
  12. # GENERAL #
  13. user = mysql
  14. default_storage_engine = InnoDB
  15. socket = /var/lib/mysql/mysql.sock
  16. pid_file = /var/lib/mysql/mysql.pid
  17.  
  18. # MyISAM #
  19. key_buffer_size = 32M
  20. myisam_recover = FORCE,BACKUP
  21.  
  22. # SAFETY #
  23. max_allowed_packet = 16M
  24. max_connect_errors = 1000000
  25.  
  26. # DATA STORAGE #
  27. datadir = /var/lib/mysql/
  28.  
  29. # BINARY LOGGING #
  30. log_bin = /var/lib/mysql/mysql-bin
  31. expire_logs_days = 14
  32. sync_binlog = 1
  33.  
  34. # CACHES AND LIMITS #
  35. tmp_table_size = 32M
  36. max_heap_table_size = 32M
  37. query_cache_type = 0
  38. query_cache_size = 0
  39. max_connections = 200
  40. thread_cache_size = 20
  41. open_files_limit = 65535
  42. table_definition_cache = 1024
  43. table_open_cache = 2048
  44.  
  45. # INNODB #
  46. innodb_flush_method = O_DIRECT
  47. innodb_log_files_in_group = 2
  48. innodb_log_file_size = 256M
  49. innodb_flush_log_at_trx_commit = 1
  50. innodb_file_per_table = 1
  51. innodb_buffer_pool_size = 12G
  52.  
  53. # LOGGING #
  54. log_error = /var/lib/mysql/mysql-error.log
  55. log_queries_not_using_indexes = 1
  56. slow_query_log = 1
  57. slow_query_log_file = /var/lib/mysql/mysql-slow.log
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement