Advertisement
Guest User

mysqld my.cnf

a guest
Oct 21st, 2014
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 1.65 KB | None | 0 0
  1. # Generate by Andik Kurniawan at http://masandik.com
  2.  
  3. [mysql]
  4.  
  5. # CLIENT #
  6. port                           = 3306
  7. socket                         = /var/run/mysqld/mysqld.sock
  8.  
  9. [mysqld]
  10.  
  11. # GENERAL #
  12. user                           = mysql
  13. default-storage-engine         = InnoDB
  14. socket                         = /var/run/mysqld/mysqld.sock
  15. pid-file                       = /var/run/mysqld/mysqld.pid
  16. performance_schema             = off
  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                = 500
  40. thread-cache-size              = 50
  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           = 64M
  49. innodb-flush-log-at-trx-commit = 1
  50. innodb-file-per-table          = 1
  51. innodb-buffer-pool-size        = 128M
  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