Last active
April 25, 2016 12:44
-
-
Save inkrement/b26e5a7994c690f276da14c1f04147dd to your computer and use it in GitHub Desktop.
Scaleway VP1 optimised mysql configuration - used Percona Configuration Wizard (http://tools.percona.com/)
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
[mysql] | |
local-infile=1 ## enable local infile support | |
[client] | |
port = 3306 | |
socket = /var/run/mysqld/mysqld.sock | |
[mysqld_safe] | |
socket = /var/run/mysqld/mysqld.sock | |
nice = 0 | |
[mysqld] | |
pid-file = /var/run/mysqld/mysqld.pid | |
socket = /var/run/mysqld/mysqld.sock | |
port = 3306 | |
basedir = /usr | |
tmpdir = /tmp | |
lc-messages-dir = /usr/share/mysql | |
skip-external-locking | |
bind-address = 127.0.0.1 | |
user = mysql | |
# MyISAM # | |
key-buffer-size = 32M | |
myisam-recover = FORCE,BACKUP | |
# SAFETY # | |
max-allowed-packet = 16M | |
max-connect-errors = 1000000 | |
sysdate-is-now = 1 | |
# DATA STORAGE # | |
datadir = /var/lib/mysql | |
# 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 = 2048 | |
# INNODB # | |
innodb-flush-method = O_DIRECT | |
innodb-log-files-in-group = 2 | |
innodb-log-file-size = 128M | |
innodb-flush-log-at-trx-commit = 1 | |
innodb-file-per-table = 1 | |
innodb-buffer-pool-size = 1456M | |
# LOGGING # | |
log-error = /var/log/mysql/error.log | |
log-queries-not-using-indexes = 1 | |
slow-query-log = 1 | |
slow-query-log-file = /var/log/mysql/mysql-slow.log | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment