Created
December 24, 2017 03:51
-
-
Save johnroyer/2dec60c7cf14b8788d8ee65918178f0b to your computer and use it in GitHub Desktop.
percona-server-5.7 config template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[client] | |
default-character-set = utf8mb4 | |
[mysql] | |
[mysqld] | |
user = mysql | |
pid-file = /var/run/mysqld/mysqld.pid | |
socket = /var/run/mysqld/mysqld.sock | |
port = 3306 | |
basedir = /usr | |
datadir = /var/lib/mysql | |
tmpdir = /tmp | |
lc-messages-dir = /usr/share/mysql | |
default-storage-engine = InnoDB | |
character-set-server = utf8mb4 | |
collation-server = utf8mb4_unicode_ci | |
init_connect='SET collation_connection = utf8mb4_unicode_ci' | |
init_connect='SET NAMES utf8mb4' | |
explicit_defaults_for_timestamp | |
# MyISAM # | |
key-buffer-size = 32M | |
myisam-recover-options = FORCE,BACKUP | |
max-allowed-packet = 16M | |
max-connect-errors = 1000000 | |
# BINARY LOGGING # | |
server-id = 4782375 | |
log-bin = /var/lib/mysql/mysql-bin | |
expire-logs-days = 14 | |
sync-binlog = 1 | |
# 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 = 32M | |
# INNODB # | |
innodb-flush-method = O_DIRECT | |
innodb-log-files-in-group = 2 | |
innodb-log-file-size = 64M | |
innodb-flush-log-at-trx-commit = 1 | |
innodb-file-per-table = 1 | |
innodb-buffer-pool-size = 64M | |
innodb_large_prefix = 1 | |
# LOGGING # | |
#log-error = /var/log/mysql/error.log | |
log-error = /var/lib/mysql/mysql-error.log | |
log-queries-not-using-indexes = 1 | |
slow-query-log = 1 | |
slow-query-log-file = /var/lib/mysql/mysql-slow.log | |
# Recommended in standard MySQL setup | |
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_ALL_TABLES | |
# Disabling symbolic-links is recommended to prevent assorted security risks | |
symbolic-links=0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment