Guest User

Untitled

a guest
Jul 9th, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.69 KB | None | 0 0
  1. [mysqld]
  2. #primary
  3. datadir=/mnt/db/mysql
  4. socket=/var/lib/mysql/mysql.sock
  5. user=mysql
  6.  
  7. # Default to using old password format for compatibility with mysql 3.x
  8. # clients (those using the mysqlclient10 compatibility package).
  9. old_passwords=1
  10.  
  11. bind-address = 0.0.0.0
  12.  
  13. skip-name-resolve
  14.  
  15. key_buffer = 384M
  16. table_cache = 256
  17. sort_buffer_size = 8M
  18. read_buffer_size = 2M
  19. read_rnd_buffer_size = 4M
  20. myisam_sort_buffer_size = 64M
  21. thread_cache_size = 8
  22. query_cache_size= 16M
  23. #Try number of CPU’s*2 for thread_concurrency
  24. thread_concurrency = 8
  25. innodb_buffer_pool_size = 12G
  26. innodb_additional_mem_pool_size = 20M
  27.  
  28. log-bin = /mnt/db/mysql/mysql-bin.log
  29. expire_logs_days = 10
  30. max_binlog_size = 100M
  31. sync_binlog=1
  32.  
  33. relay-log = /mnt/db/tmp/mysql/relay.log
  34. relay-log-info-file = /mnt/db/tmp/mysql/relay-log.info
  35. relay-log-index = /mnt/db/tmp/mysql/relay-log.index
  36.  
  37. binlog-do-db=ph_production # input the database which should be replicated
  38. binlog-do-db=main_june
  39. binlog-do-db=main_beta
  40. #binlog-do-db=platphorm_test
  41. binlog-ignore-db=mysql # input the database that should be ignored for replication
  42. binlog-ignore-db=test
  43.  
  44. server-id=1
  45.  
  46. #information for becoming slave.
  47. master-host = 10.209.109.171
  48. master-user = replication
  49. master-password = slave2
  50. master-port = 3306
  51.  
  52. auto_increment_increment= 2
  53. auto_increment_offset = 1
  54.  
  55. innodb_lock_wait_timeout = 500
  56.  
  57. # For generating SSL certificates I recommend the OpenSSL GUI "tinyca".
  58. #
  59. ssl-ca=/etc/mysql/ca-cert.pem
  60. ssl-cert=/etc/mysql/server-cert.pem
  61. ssl-key=/etc/mysql/server-key.pem
  62.  
  63. [mysqld_safe]
  64. log-error=/var/log/mysqld.log
  65. pid-file=/var/run/mysqld/mysqld.pid
  66.  
  67. [mysql.server]
  68. user=mysql
  69. basedir=/var/lib
Add Comment
Please, Sign In to add comment