Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [mysql]
- # CLIENT #
- port = 3306
- socket = /var/lib/mysql/mysql.sock
- [mysqld]
- # GENERAL #
- user = mysql
- default-storage-engine = InnoDB
- socket = /var/lib/mysql/mysql.sock
- pid-file = /var/lib/mysql/mysql.pid
- #Connection timeout
- wait_timeout = 600
- interactive_timeout = 600
- # MyISAM #
- key-buffer-size = 32M
- myisam-recover = FORCE,BACKUP
- # SAFETY #
- max-allowed-packet = 16M
- max-connect-errors = 1000000
- sysdate-is-now = 1
- innodb = FORCE
- # DATA STORAGE #
- datadir = /var/lib/mysql/
- # BINARY LOGGING #
- log-bin = /var/lib/mysql/mysql-bin
- expire-logs-days = 14
- sync-binlog = 1
- # REPLICATION #
- server-id = 34
- read-only = 0
- #skip-slave-start = 1
- log-slave-updates = 1
- relay-log = /var/lib/mysql/relay-bin
- slave-net-timeout = 60
- sync-master-info = 1
- sync-relay-log = 1
- sync-relay-log-info = 1
- #temporary for fabric prep dat acleanup
- #slave-skip-errors = 1032
- #binlog-do-db = serpsalpha
- binlog-format = 'ROW'
- #Fabric:
- #skip-slave-start (=0), binlog-do-db (empty), & binlog-format (ROW) above are changed for Fabric.
- #additionally, sync-master-info must be on for Fabric, and the following:
- gtid-mode = 'ON'
- enforce-gtid-consistency = 'ON'
- simplified_binlog_gtid_recovery = 'ON' #Note: this variable has been changing name a lot. It can fail under special circumstances. See details at http://v.gd/2XcOhf
- master-info-repository = TABLE
- relay-log-info-repository = TABLE
- #report-host= might want to set this for fabric
- #report-port #no need to set, as it's reported correctly as of 5.5 or 5.6...
- # CACHES AND LIMITS #
- tmp-table-size = 32M
- max-heap-table-size = 32M
- query-cache-type = 0
- query-cache-size = 0
- max-connections = 500
- thread-cache-size = 50
- open-files-limit = 65535
- table-definition-cache = 1024
- table-open-cache = 55
- # INNODB #
- innodb-flush-method = O_DIRECT
- innodb-log-files-in-group = 2
- innodb-log-file-size = 512M
- innodb-flush-log-at-trx-commit = 2
- innodb-file-per-table = 1
- innodb-buffer-pool-size = 40G
- innodb-rollback-on-timeout = ON
- transaction-isolation = READ-COMMITTED
- low-priority-updates = 1
- # LOGGING #
- log-error = /var/log/mysql/mysql-error.log
- log-queries-not-using-indexes = 0
- slow-query-log = 1
- slow-query-log-file = /var/log/mysql/mysql-slow.log
- long-query-time = 10
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement