Created
February 16, 2013 21:12
-
-
Save hacfi/4968763 to your computer and use it in GitHub Desktop.
my.cnf for mysql/percona on os x installed with brew
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] | |
port = 3306 | |
socket = /usr/local/var/run/mysql.sock | |
[mysqld] | |
#user = mysql | |
default_storage_engine = InnoDB | |
socket = /usr/local/var/run/mysql.sock | |
pid_file = /usr/local/var/run/mysql.pid | |
key_buffer_size = 32M | |
myisam_recover = FORCE,BACKUP | |
max_allowed_packet = 16M | |
max_connect_errors = 1000000 | |
#skip_name_resolve | |
innodb = FORCE | |
innodb_strict_mode = 0 | |
datadir = /usr/local/var/mysql/ | |
#log_bin = /usr/local/var/mysql/mysql-bin | |
expire_logs_days = 14 | |
sync_binlog = 1 | |
tmp_table_size = 32M | |
max_heap_table_size = 32M | |
query_cache_type = 0 | |
query_cache_size = 0 | |
#max_connections = 500 | |
max_connections = 150 | |
thread_cache_size = 50 | |
#open_files_limit = 65535 | |
table_definition_cache = 1024 | |
table_open_cache = 2048 | |
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 = 512M | |
log_error = /var/log/mysql/error.log | |
log_queries_not_using_indexes = 1 | |
general_log = 1 | |
general_log_file = /var/log/mysql/general.log | |
long_query_time = 0.0001 | |
slow_query_log = 1 | |
slow_query_log_file = /var/log/mysql/slow_query.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment