Last active
July 9, 2023 18:56
-
-
Save cristiroma/ee9d01d0f0965a1bdbc7ed8adc93fa10 to your computer and use it in GitHub Desktop.
MySQL configuration for local development
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
[mysqld] | |
character-set-server=utf8mb4 | |
slow_query_log=1 | |
slow_query_log_file=/var/log/mysql/slow.log | |
net_read_timeout=7200 | |
net_write_timeout=7200 | |
table_definition_cache=16384 | |
open_files_limit=32768 | |
thread_cache_size=256 | |
max_connections=10 | |
key_buffer_size=64M | |
key_cache_block_size=4K | |
sort_buffer_size=4M | |
read_buffer_size=4M | |
read_rnd_buffer_size=32M | |
join_buffer_size=8M | |
tmp_table_size=256M | |
max_heap_table_size=512M | |
query_cache_size=64M | |
query_cache_limit=16M | |
max_allowed_packet=1G | |
innodb_file_per_table=1 | |
innodb_strict_mode=1 | |
innodb_log_file_size=1G | |
innodb_log_buffer_size=64M | |
innodb_buffer_pool_size=4G | |
innodb_lock_wait_timeout=3600 | |
innodb_flush_log_at_trx_commit=0 | |
innodb_flush_method=O_DIRECT | |
innodb_doublewrite=0 | |
innodb_flush_neighbors=0 | |
sync_binlog=0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment