Advertisement
Guest User

My DB Config

a guest
Mar 25th, 2014
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.58 KB | None | 0 0
  1. [mysql]
  2.  
  3. # CLIENT #
  4. port = 3306
  5. socket = /var/run/mysql/mysqld.sock
  6.  
  7. [mysqld]
  8.  
  9. # GENERAL #
  10. user = mysql
  11. default-storage-engine = InnoDB
  12. socket = /var/run/mysqld/mysqld.sock
  13. pid-file = /var/run/mysqld/mysqld.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. innodb = FORCE
  24.  
  25. # DATA STORAGE #
  26. datadir = /var/lib/mysql/
  27.  
  28. # BINARY LOGGING #
  29. log-bin = /var/lib/mysql/mysql-bin
  30. expire-logs-days = 14
  31. sync-binlog = 1
  32.  
  33. # CACHES AND LIMITS #
  34. tmp-table-size = 32M
  35. max-heap-table-size = 32M
  36. query-cache-type = 1
  37. query-cache-size = 256
  38. max-connections = 500
  39. thread-cache-size = 50
  40. open-files-limit = 65535
  41. table-definition-cache = 1024
  42. table-open-cache = 32
  43.  
  44. # INNODB #
  45. innodb-flush-method = O_DIRECT
  46. innodb-log-files-in-group = 2
  47. innodb-log-file-size = 256M
  48. innodb-flush-log-at-trx-commit = 1
  49. innodb-file-per-table = 1
  50. innodb-buffer-pool-size = 8G
  51.  
  52. # LOGGING #
  53. log-error = /var/lib/mysql/mysql-error.log
  54. slow-query-log = 1
  55. slow-query-log-file = /var/lib/mysql/mysql-slow.log
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement