dbinoj

my.cnf db server

Aug 15th, 2012
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.00 KB | None | 0 0
  1. [mysql]
  2.  
  3. # CLIENT #
  4. port = 3306
  5. socket = /var/lib/mysql/mysql.sock
  6.  
  7. [mysqld]
  8.  
  9. # GENERAL #
  10. user = mysql
  11. default_storage_engine = InnoDB
  12. socket = /var/lib/mysql/mysql.sock
  13. pid_file = /var/lib/mysql/mysql.pid
  14.  
  15. # MyISAM #
  16. key_buffer_size = 32M
  17. myisam_recover = FORCE,BACKUP
  18.  
  19. # SAFETY #
  20. max_allowed_packet = 16M
  21. max_connect_errors = 1000000
  22. skip_name_resolve
  23. sql_mode = STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_AUTO_VALUE_ON_ZERO,NO_ENGINE_SUBSTITUTION,NO_ZERO_DATE,NO_ZERO_IN_DATE,ONLY_FULL_GROUP_BY
  24. sysdate_is_now = 1
  25. innodb = FORCE
  26. innodb_strict_mode = 1
  27.  
  28. # DATA STORAGE #
  29. datadir = /var/lib/mysql/
  30.  
  31. # BINARY LOGGING #
  32. log_bin = /var/lib/mysql/mysql-bin
  33. expire_logs_days = 14
  34. sync_binlog = 1
  35.  
  36. # CACHES AND LIMITS #
  37. tmp_table_size = 32M
  38. max_heap_table_size = 32M
  39. query_cache_type = 1
  40. query_cache_size = 256M
  41. query_cache_limit = 2M
  42. max_connections = 100
  43. thread_cache_size = 50
  44. open_files_limit = 65535
  45. table_definition_cache = 4096
  46. table_open_cache = 4096
  47.  
  48. # INNODB #
  49. innodb_flush_method = O_DIRECT
  50. innodb_log_files_in_group = 2
  51. innodb_log_file_size = 128M
  52. innodb_flush_log_at_trx_commit = 1
  53. innodb_file_per_table = 1
  54. innodb_buffer_pool_size = 1792M
  55.  
  56. # LOGGING #
  57. log_error = /var/lib/mysql/mysql-error.log
  58. log_queries_not_using_indexes = 1
  59. slow_query_log = 1
  60. slow_query_log_file = /var/lib/mysql/mysql-slow.log
  61.  
  62.  
  63. [mysqld_safe]
  64. log-error=/var/log/mysqld.log
  65. pid-file=/var/run/mysqld/mysqld.pid
Advertisement
Add Comment
Please, Sign In to add comment