Skip to content

Instantly share code, notes, and snippets.

@tareqy
Created March 9, 2016 16:27
Show Gist options
  • Save tareqy/133df986516ee7af9caf to your computer and use it in GitHub Desktop.
Save tareqy/133df986516ee7af9caf to your computer and use it in GitHub Desktop.
Starter MySQL config file for a server with 8GB RAM, innodb and MyISAM.
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
key_buffer_size=32M
query_cache_type=1
query_cache_size=4M
query_cache_limit=24M
tmp_table_size=128M
max_heap_table_size=128M
innodb_buffer_pool_size = 4000M
collation_server=utf8_general_ci
character_set_server=utf8
interactive_timeout=120
wait_timeout=120
max_connections=100
max_allowed_packet=1G
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
# Recommended in standard MySQL setup
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment