Skip to content

Instantly share code, notes, and snippets.

@bsa7
Last active March 8, 2016 21:36
Show Gist options
  • Save bsa7/713ebcac1dcea6ed6cb1 to your computer and use it in GitHub Desktop.
Save bsa7/713ebcac1dcea6ed6cb1 to your computer and use it in GitHub Desktop.
reduce mysql memory usage

in /etc/mysql/mysql.conf.d/mysqld.cnf change these values:

    key_buffer              = 8M
    max_connections         = 30
    query_cache_size        = 8M
    query_cache_limit       = 512K
    thread_stack            = 128K
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment