mfn

MySQL Performance Config

mfn
Jan 25th, 2016
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 1.65 KB | None | 0 0
  1. [mysql]
  2. [client]
  3. port        = 3306
  4. socket      = /var/run/mysqld/mysqld.sock
  5.  
  6. [mysqld]
  7. user        = mysql
  8. default_storage_engine = InnoDB
  9. socket      = /var/run/mysqld/mysqld.sock
  10. pid-file    = /var/run/mysqld/mysqld.pid
  11. basedir     = /usr
  12. tmpdir      = /tmp
  13. lc-messages-dir = /usr/share/mysql
  14. skip-external-locking
  15. bind-address        = 127.0.0.1
  16. performance_schema  = off
  17.  
  18. key_buffer_size     = 32M
  19. myisam-recover = FORCE,BACKUP
  20.  
  21. max_allowed_packet  = 16M
  22. thread_stack = 192K
  23. thread_cache_size = 16
  24.  
  25. max_connect_errors = 1000000
  26. datadir     = /var/lib/mysql
  27.  
  28. log_bin = /var/log/mysql/mysql-bin.log
  29. expire_logs_days = 3
  30. sync-binlog = 1
  31.  
  32. tmp_table_size                 = 32M
  33. max_heap_table_size            = 32M
  34. query_cache_type               = 0
  35. query_cache_limit                = 1M
  36. query_cache_size               = 16M
  37. max_connections                = 500
  38. thread_cache_size              = 50
  39. open_files_limit               = 65535
  40. table_definition_cache         = 1024
  41. table_open_cache               = 2048
  42.  
  43. innodb_flush_method            = O_DIRECT
  44. innodb_log_files_in_group      = 2
  45. innodb_log_file_size           = 64M
  46. innodb_flush_log_at_trx_commit = 1
  47. innodb_file_per_table          = 1
  48. innodb_buffer_pool_size        = 128M
  49. binlog_format                  = mixed
  50. log_error                      = /var/log/mysql/error.log
  51. log_queries_not_using_indexes  = 1
  52. slow_query_log                 = 1
  53. slow_query_log_file            = /var/log/mysql/slow.log
  54.  
  55. max_binlog_size         = 100M
  56.  
  57. [mysqld_safe]
  58. socket      = /var/run/mysqld/mysqld.sock
  59. nice        = 0
  60.  
  61. [mysqldump]
  62. quick
  63. quote-names
  64. max_allowed_packet  = 16M
  65.  
  66. [isamchk]
  67. key_buffer      = 32M
  68.  
  69. !includedir /etc/mysql/conf.d/
Add Comment
Please, Sign In to add comment