Skip to content

Instantly share code, notes, and snippets.

@jpiche
Created April 12, 2013 19:46
Show Gist options
  • Select an option

  • Save jpiche/5374590 to your computer and use it in GitHub Desktop.

Select an option

Save jpiche/5374590 to your computer and use it in GitHub Desktop.
Beyond what is shipped by default in MySQL or MariaDB my.cnf config files, I always make sure to put these in and edit memory settings appropriately.
[mysqld]
bind-address = 127.0.0.1
skip-name-resolve
default_storage_engine = InnoDB
innodb_buffer_pool_size = 256M
innodb_log_buffer_size = 8M
innodb_file_per_table = 1
innodb_open_files = 400
innodb_io_capacity = 400
innodb_flush_method = O_DIRECT
character-set-server = utf8
key_buffer = 16M
query_cache_limit = 4M
query_cache_size = 100M
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment