-
-
Save IrcDirk/cd557ce8d359c05e94d720586779f98a to your computer and use it in GitHub Desktop.
Starter MySQL config file for a server with 8GB RAM, innodb and MyISAM.
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
[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