File: //etc/my.cnf.d/server.cnf
#
# These groups are read by MariaDB server.
# Use it for options that only the server (but not clients) should see
#
# See the examples of server my.cnf files in /usr/share/mysql/
#
# this is read by the standalone daemon and embedded servers
[server]
# this is only for the mysqld standalone daemon
[mysqld]
skip-external-locking
innodb_file_per_table=1
key_buffer_size = 512M
max_allowed_packet = 10M
table_open_cache = 512
sort_buffer_size = 10M
read_buffer_size = 10M
read_rnd_buffer_size = 400M
myisam_sort_buffer_size = 512M
thread_cache_size = 16
#query_cache_size= 16M
# Try number of CPU's*2 for thread_concurrency
thread_concurrency = 16
query_cache_size=568435456
query_cache_type=1
query_cache_limit=9048576
#skip-external-locking
#key_buffer_size = 256M
#max_allowed_packet = 1M
#table_open_cache = 256
#sort_buffer_size = 1M
#read_buffer_size = 1M
#read_rnd_buffer_size = 4M
#myisam_sort_buffer_size = 64M
#thread_cache_size = 8
##query_cache_size= 16M
## Try number of CPU's*2 for thread_concurrency
#thread_concurrency = 8
#query_cache_size=268435456
#query_cache_type=1
#query_cache_limit=1048576
slow_query_log = 1
log-slow-queries = /var/log/mysql-slow.log
long_query_time = 2
# this is only for embedded server
[embedded]
# This group is only read by MariaDB-5.5 servers.
# If you use the same .cnf file for MariaDB of different versions,
# use this group for options that older servers don't understand
[mysqld-5.5]
# These two groups are only read by MariaDB servers, not by MySQL.
# If you use the same .cnf file for MySQL and MariaDB,
# you can put MariaDB-only options here
[mariadb]
[mariadb-5.5]