Created
February 3, 2013 09:52
-
-
Save mbijon/4701099 to your computer and use it in GitHub Desktop.
my.cnf
* Percona recommendations for 4CPU, 12Gb server
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
# Generated by Percona Configuration Wizard (http://tools.percona.com/) version REL5-20120208 | |
# Configuration name database generated for mike@etchsoftware.com at 2013-01-31 22:23:13 | |
[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 | |
# MyISAM # | |
key_buffer_size = 32M | |
myisam_recover = FORCE,BACKUP | |
# SAFETY # | |
max_allowed_packet = 16M | |
max_connect_errors = 1000000 | |
innodb = FORCE | |
# DATA STORAGE # | |
datadir = /var/lib/mysql/ | |
# BINARY LOGGING # | |
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 = 2048 | |
# INNODB # | |
innodb_flush_method = O_DIRECT | |
innodb_log_files_in_group = 2 | |
innodb_log_file_size = 256M | |
innodb_flush_log_at_trx_commit = 1 | |
innodb_file_per_table = 1 | |
innodb_buffer_pool_size = 10G | |
# LOGGING # | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment