Advertisement
Guest User

Untitled

a guest
Aug 29th, 2014
342
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. root@host:~# cat /etc/mysql/my.cnf | grep -v "^#"
  2.  
  3. [client]
  4. port = 3306
  5. socket = /var/run/mysqld/mysqld.sock
  6. default-character-set = utf8
  7.  
  8.  
  9. [mysqld_safe]
  10. socket = /var/run/mysqld/mysqld.sock
  11. nice = 0
  12.  
  13. [mysqld]
  14. user = mysql
  15. pid-file = /var/run/mysqld/mysqld.pid
  16. socket = /var/run/mysqld/mysqld.sock
  17. port = 3306
  18. basedir = /usr
  19. datadir = /var/lib/mysql
  20. tmpdir = /tmp
  21. lc-messages-dir = /usr/share/mysql
  22. skip-external-locking
  23. log-error=/var/log/mysql-errors.log
  24.  
  25.  
  26. key_buffer_size = 2048M
  27.  
  28. max_allowed_packet = 16M
  29. thread_stack = 192K
  30. thread_cache_size = 8
  31. myisam-recover = BACKUP
  32. max-connect_errors = 50
  33.  
  34. max_connections = 500
  35. table_cache = 1024
  36. wait_timeout = 120
  37. interactive_timeout = 100
  38. connect_timeout = 120
  39. query_cache_limit = 4M
  40. query_cache_size = 128M
  41.  
  42. join_buffer_size = 4M
  43. read_buffer_size = 2M
  44. sort_buffer_size = 8M
  45.  
  46.  
  47. tmp_table_size = 512M
  48. max_heap_table_size = 512M
  49.  
  50. table_open_cache = 36288
  51.  
  52. transaction-isolation = READ-COMMITTED
  53. innodb_buffer_pool_size = 2048M
  54.  
  55. innodb_flush_log_at_trx_commit = 2
  56. innodb_flush_method = O_DIRECT
  57. open_files_limit = 18200
  58.  
  59. log_slow_queries = /var/log/mysql/mysql-slow.log
  60. long_query_time = 2
  61. log-queries-not-using-indexes
  62. expire_logs_days = 10
  63. max_binlog_size = 100M
  64. character-set-server = utf8
  65.  
  66.  
  67.  
  68. [mysqldump]
  69. quick
  70. quote-names
  71. max_allowed_packet = 16M
  72. default-character-set = utf8
  73.  
  74. [mysql]
  75. [isamchk]
  76. key_buffer = 16M
  77.  
  78. !includedir /etc/mysql/conf.d/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement