Last active
August 29, 2015 14:24
-
-
Save bfagundez/509184eabaacd14465d4 to your computer and use it in GitHub Desktop.
my.cnf
This file contains hidden or 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] | |
| port = 3306 | |
| socket = /var/run/mysqld/mysqld.sock | |
| [mysqld_safe] | |
| socket = /var/run/mysqld/mysqld.sock | |
| nice = 0 | |
| [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 | |
| skip-external-locking | |
| bind-address = 127.0.0.1 | |
| key_buffer = 16M | |
| myisam-recover = BACKUP | |
| log_error = /var/log/mysql/error.log | |
| expire_logs_days = 10 | |
| max_binlog_size = 100M | |
| interactive_timeout=3600 | |
| wait_timeout=3600 | |
| back_log = 50 | |
| max_connections = 500 | |
| max_connect_errors = 100 | |
| table_open_cache = 2048 | |
| max_allowed_packet = 1G | |
| binlog_cache_size = 64M | |
| max_heap_table_size = 4096M | |
| read_buffer_size = 128M | |
| read_rnd_buffer_size = 256M | |
| sort_buffer_size = 128M | |
| join_buffer_size = 128M | |
| thread_cache_size = 16 | |
| query_cache_size = 4096M | |
| query_cache_limit = 16M | |
| ft_min_word_len = 3 | |
| default-storage-engine = INNODB | |
| thread_stack = 192K | |
| transaction_isolation = REPEATABLE-READ | |
| tmp_table_size = 4096M | |
| slow_query_log | |
| long_query_time = 2 | |
| key_buffer_size = 1024M | |
| bulk_insert_buffer_size = 256M | |
| myisam_sort_buffer_size = 256M | |
| myisam_max_sort_file_size = 10G | |
| myisam_repair_threads = 1 | |
| innodb_buffer_pool_size = 12G | |
| innodb_buffer_pool_instances = 32 | |
| innodb_file_per_table | |
| innodb_stats_on_metadata = 0 | |
| innodb_data_file_path = ibdata1:10M:autoextend | |
| innodb_write_io_threads = 16 | |
| innodb_read_io_threads = 16 | |
| innodb_thread_concurrency = 32 | |
| innodb_flush_log_at_trx_commit = 2 | |
| innodb_log_buffer_size = 64M | |
| innodb_log_file_size = 256M | |
| innodb_log_files_in_group = 3 | |
| innodb_max_dirty_pages_pct = 90 | |
| innodb_lock_wait_timeout = 3600 | |
| [mysqldump] | |
| quick | |
| quote-names | |
| max_allowed_packet = 16M | |
| [mysql] | |
| #no-auto-rehash # faster start of mysql but no tab completition | |
| [isamchk] | |
| key_buffer = 16M | |
| # | |
| # * IMPORTANT: Additional settings that can override those from this file! | |
| # The files must end with '.cnf', otherwise they'll be ignored. | |
| # | |
| !includedir /etc/mysql/conf.d/ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment