352516381f
Strict sql_mode settings are very application specific, many will simply not work with them. This setting was likely inherited from some other production MySQL config file and is not appropriate for a generic configuration. Specifically, this broke the MySQL package maintainer scripts. Change-Id: I068fcc7b3c770541d3d1ecfb372384750f182584
65 lines
1.8 KiB
INI
65 lines
1.8 KiB
INI
[mysql]
|
|
port = 3306
|
|
socket = /var/run/mysqld/mysqld.sock
|
|
|
|
[mysqld]
|
|
|
|
# GENERAL #
|
|
user = mysql
|
|
default_storage_engine = InnoDB
|
|
socket = /var/run/mysqld/mysqld.sock
|
|
pid_file = /var/lib/mysql/mysql.pid
|
|
bind-address = 0.0.0.0
|
|
|
|
# MyISAM #
|
|
key_buffer_size = 32M
|
|
myisam_recover = FORCE,BACKUP
|
|
|
|
# SAFETY #
|
|
max_allowed_packet = 16M
|
|
max_connect_errors = 1000000
|
|
skip_name_resolve
|
|
sysdate_is_now = 1
|
|
innodb = FORCE
|
|
innodb_strict_mode = 1
|
|
|
|
# DATA STORAGE #
|
|
datadir = /var/lib/mysql/
|
|
|
|
# CACHES AND LIMITS #
|
|
tmp_table_size = 32M
|
|
max_heap_table_size = 32M
|
|
query_cache_type = 0
|
|
query_cache_size = 0
|
|
max_connections = 500
|
|
thread_cache_size = 50
|
|
open_files_limit = 65535
|
|
table_definition_cache = 4096
|
|
table_open_cache = 4096
|
|
|
|
# INNODB #
|
|
innodb_flush_method = O_DIRECT
|
|
innodb_log_files_in_group = 2
|
|
innodb_log_file_size = 64M
|
|
innodb_flush_log_at_trx_commit = 2
|
|
innodb_file_per_table = 1
|
|
innodb_buffer_pool_size = 592M
|
|
# TODO
|
|
# innodb_read_io_threads
|
|
# innodb_write_io_threads
|
|
|
|
|
|
# LOGGING #
|
|
log_error = /var/log/mysql/error.log
|
|
log_queries_not_using_indexes = 1
|
|
slow_query_log = 1
|
|
slow_query_log_file = /var/log/mysql/mysql-slow.log
|
|
|
|
# server_id set in /etc/mysql/conf.d/server_id.cnf
|
|
# server_id = 1
|
|
log_bin = /var/lib/mysql/mysql-bin
|
|
expire_logs_days = 7
|
|
max_binlog_size = 100M
|
|
binlog_format = ROW
|
|
!includedir /etc/mysql/conf.d/
|