Advertisement
Guest User

Untitled

a guest
Jul 10th, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.69 KB | None | 0 0
  1. [client]
  2. #password = your_password
  3. port = 3306
  4. socket = /var/run/mysqld/mysqld.sock
  5.  
  6. [mysqld]
  7. #default-table-type = INNODB
  8. datadir=/var/lib/mysql
  9. socket=/var/run/mysqld/mysqld.sock
  10. port=3306
  11. #skip-networking
  12. # Default to using old password format for compatibility with mysql 3.x
  13. # clients (those using the mysqlclient10 compatibility package).
  14. old_passwords=1
  15. skip-locking
  16. key_buffer = 192M
  17. max_allowed_packet = 16M
  18. table_cache = 512
  19. sort_buffer_size = 4M
  20. net_buffer_length = 16K
  21. read_buffer_size = 1M
  22. read_rnd_buffer_size = 4M
  23. myisam_sort_buffer_size = 64M
  24. query_cache_size= 32M
  25. log-slow-queries = /var/log/mysqlslow.log
  26. long_query_time = 5
  27. log_queries_not_using_indexes
  28. max_connections = 800
  29. #log=/var/log/mysql.log
  30. log-error=/var/log/mysql.err
  31. thread_cache_size=0
  32. expire_logs_days=15
  33.  
  34.  
  35. ##Inno DB
  36. innodb_data_home_dir = /var/lib/mysql/
  37. innodb_data_file_path = ibdata1:10M:autoextend
  38. innodb_log_group_home_dir = /var/lib/mysql
  39. innodb_file_per_table
  40. # You can set .._buffer_pool_size up to 50 - 80 %
  41. # of RAM but beware of setting memory usage too high
  42. innodb_buffer_pool_size = 4500M
  43. innodb_additional_mem_pool_size = 200M
  44. # Set .._log_file_size to 25 % of buffer pool size
  45. #innodb_log_file_size = 1G
  46. innodb_log_file_size = 64M
  47. innodb_log_buffer_size = 8M
  48. # Write to log but don't flush on commit (it will be flushed every "second")
  49. innodb_flush_log_at_trx_commit = 2
  50. innodb_lock_wait_timeout = 50
  51. innodb_support_xa = 1
  52. # innodb_doublewrite
  53. innodb_fast_shutdown = 1
  54.  
  55. # Replication Master Server (default)
  56. # binary logging is required for replication
  57. log-bin=/mnt/mysql-binlogs/mysql-bin
  58.  
  59. # required unique id between 1 and 2^32 - 1
  60. # defaults to 1 if master-host is not set
  61. # but will not function as a master if omitted
  62. server-id=1294677725
  63.  
  64. # Replication Slave (comment out master section to use this)
  65. #master-host=<hostname>
  66. #master-user=<username>
  67. #master-password=<password>
  68. #master-port=<port>
  69.  
  70. # Point the following paths to different dedicated disks
  71. tmpdir=/mnt/mysqltmp
  72. #log-update = /path-to-dedicated-directory/hostname
  73.  
  74. # Uncomment the following if you are using BDB tables
  75. #bdb_cache_size = 64M
  76. #bdb_max_lock = 100000
  77.  
  78. [mysql.server]
  79. user=mysql
  80. basedir=/usr
  81.  
  82. [mysqld_safe]
  83. log-error=/var/log/mysqld.log
  84. pid-file=/var/run/mysqld/mysqld.pid
  85.  
  86. [mysqldump]
  87. quick
  88. max_allowed_packet = 16M
  89.  
  90. [mysql]
  91. no-auto-rehash
  92. # Remove the next comment character if you are not familiar with SQL
  93. #safe-updates
  94.  
  95. [isamchk]
  96. key_buffer = 128M
  97. sort_buffer_size = 128M
  98. read_buffer = 2M
  99. write_buffer = 2M
  100.  
  101. [myisamchk]
  102. key_buffer = 128M
  103. sort_buffer_size = 128M
  104. read_buffer = 2M
  105. write_buffer = 2M
  106.  
  107. [mysqlhotcopy]
  108. interactive-timeout
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement