Advertisement
Guest User

my.cnf

a guest
May 2nd, 2015
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. [client]
  2. port = 3306
  3. socket = /var/run/mysqld/mysqld.sock
  4.  
  5. [mysqld_safe]
  6. socket = /var/run/mysqld/mysqld.sock
  7. nice = 0
  8.  
  9. [mysqld]
  10. user = mysql
  11. pid-file = /var/run/mysqld/mysqld.pid
  12. socket = /var/run/mysqld/mysqld.sock
  13. port = 3306
  14. basedir = /usr
  15. datadir = /var/lib/mysql
  16. tmpdir = /tmp
  17. lc_messages_dir = /usr/share/mysql
  18. lc_messages = en_US
  19. skip-external-locking
  20.  
  21. bind-address = 127.0.0.1
  22.  
  23. max_connections = 600
  24. connect_timeout = 5
  25. wait_timeout = 600
  26. max_allowed_packet = 16M
  27. thread_cache_size = 128
  28. sort_buffer_size = 4M
  29. bulk_insert_buffer_size = 16M
  30. tmp_table_size = 32M
  31. max_heap_table_size = 32M
  32.  
  33. myisam_recover = BACKUP
  34. key_buffer_size = 128M
  35. #open-files-limit = 2000
  36. table_open_cache = 400
  37. myisam_sort_buffer_size = 512M
  38. concurrent_insert = 2
  39. read_buffer_size = 2M
  40. read_rnd_buffer_size = 1M
  41.  
  42. log_warnings = 2
  43. long_query_time = 10
  44. log_slow_verbosity = query_plan
  45.  
  46. log_bin = /var/log/mysql/mariadb-bin
  47. log_bin_index = /var/log/mysql/mariadb-bin.index
  48.  
  49. expire_logs_days = 10
  50. max_binlog_size = 100M
  51.  
  52. default_storage_engine = InnoDB
  53.  
  54. innodb_buffer_pool_size = 256M
  55. innodb_log_buffer_size = 8M
  56. innodb_file_per_table = 1
  57. innodb_open_files = 400
  58. innodb_io_capacity = 400
  59. innodb_flush_method = O_DIRECT
  60.  
  61. [mysqldump]
  62. quick
  63. quote-names
  64. max_allowed_packet = 16M
  65.  
  66. [isamchk]
  67. key_buffer = 16M
  68.  
  69. !includedir /etc/mysql/conf.d/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement