[client]
port = 3306
socket = /path/to/socket
[mysqld_safe]
socket = /path/to/socket
nice = 0
[mysqld]
default-storage-engine = innodb
wait_timeout=300
interactive_timeout=120
connect_timeout=10
join_buffer_size=20M
net_read_timeout=30
net_write_timeout=60
net_retry_count=5
open_files_limit=5000
user = mysql
pid-file = /var/run/mysqld/mysqld.pid
socket = /var/run/mysqld/mysqld.sock
port = 3306
basedir = /usr
port = 3306
basedir = /usr
datadir = /var/lib/mysql
tmpdir = /tmp
language = /usr/share/mysql/english
skip-external-locking
skip-name-resolve
key_buffer = 256M
key_buffer_size = 0 # 0 nondefault cache 3072 je bilo
thread_cache_size = 8 # Broj threadova koje mysql drzi u kesu
max_allowed_packet = 16M
thread_stack = 128K
myisam-recover = BACKUP
#max_connections = 100
table_cache = 200 # Broj tabela koji se kesira
sort_buffer_size = 2M
tmp_table_size = 160M # 320M
max_heap_table_size = 320M # maximum size to which implicit
# in-memory temporary tables are
# allowed to grow
query_cache_limit = 1M # bilo 512M original 1M
query_cache_size = 0 # bilo 1024M original 16M
query_cache_type = 1
log_slow_queries = /var/log/mysql/mysql-slow.log
long_query_time = 2
expire_logs_days = 10
max_binlog_size = 100M
skip-bdb
#
# * InnoDB
#
innodb_buffer_pool_size = 5G
innodb_additional_mem_pool_size = 1073741824 # 1G
innodb_lock_wait_timeout = 4 # 50 default
innodb_open_files = 1000 # 300 default
# innodb_commit_concurrency = 500 variable governs how many threads
# can commit at the same time.
# innodb_thread_concurrency = 32
# variable, which limits how many threads can be in the kernel at once.
# innodb_thread_concurrency = 32
# variable, which limits how many threads can be in the kernel at once.
# innodb_log_file_size =
# innodb_log_files_in_group =
# Increasing the buffer size, which is 1 MB by default, can help reduce I/O
# if you have large transactions. The variable that controls the buffer size is called
# innodb_log_buffer_size = 4 # Default 1
#
# * Security Features
#
# Read the manual, too, if you want chroot!
# chroot = /var/lib/mysql/
#
# For generating SSL certificates I recommend the OpenSSL GUI "tinyca".
#
# ssl-ca=/etc/mysql/cacert.pem
# ssl-cert=/etc/mysql/server-cert.pem
# ssl-key=/etc/mysql/server-key.pem
[mysqldump]
quick
quote-names
max_allowed_packet = 16M
quote-names
max_allowed_packet = 16M
[mysql]
#no-auto-rehash # faster start of mysql but no tab completition
[isamchk]
key_buffer = 16M
#
# * NDB Cluster
#
# See /usr/share/doc/mysql-server-*/README.Debian for more information.
#
# The following configuration is read by the NDB Data Nodes (ndbd processes)
# not from the NDB Management Nodes (ndb_mgmd processes).
#
# [MYSQL_CLUSTER]
# ndb-connectstring=127.0.0.1
#
# * IMPORTANT: Additional settings that can override those from this file!
# The files must end with '.cnf', otherwise they'll be ignored.
#
!includedir /etc/mysql/conf.d/