Skip to content

Instantly share code, notes, and snippets.

@asamofal
Last active June 25, 2018 07:16
Show Gist options
  • Save asamofal/157fef2d4adf19e04bca0cca2a140250 to your computer and use it in GitHub Desktop.
Save asamofal/157fef2d4adf19e04bca0cca2a140250 to your computer and use it in GitHub Desktop.
add it to /etc/mysql/my.cnf
[mysqld]
# Increase available RAM memory size for MySQL server
# Default: 135M
innodb_buffer_pool_size = 1G
# Split memory pool by multiple instance
# Default: 1
innodb_buffer_pool_instances = 8
# Increase size of redo log file
# Default: 50M
innodb_log_file_size = 256M
# Increase size of buffer for transactions (before COMMIT)
# Default: 16M
innodb_log_buffer_size = 32M
# Disable cache for queries
# Default: 16M
query_cache_size = 0
# Set how to save WRITES to the file on the disk (from buffer)
# When set 2 - MySQL will save all data from the buffer to disk EVERY second
# Default: 1
innodb_flush_log_at_trx_commit = 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment