107 lines
3.4 KiB
INI
107 lines
3.4 KiB
INI
# Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
|
|
#
|
|
# This program is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation; version 2 of the License.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program; if not, write to the Free Software
|
|
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
#
|
|
# The MySQL Server configuration file.
|
|
#
|
|
# For explanations see
|
|
# http://dev.mysql.com/doc/mysql/en/server-system-variables.html
|
|
|
|
[mysqld]
|
|
pid-file = /var/run/mysqld/mysqld.pid
|
|
socket = /var/run/mysqld/mysqld.sock
|
|
datadir = /var/lib/mysql
|
|
#log-error = /var/log/mysql/error.log
|
|
# By default we only accept connections from localhost
|
|
#bind-address = 127.0.0.1
|
|
# Disabling symbolic-links is recommended to prevent assorted security risks
|
|
symbolic-links=0
|
|
innodb_force_recovery=0
|
|
#sql-mode = "STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
|
|
sql_mode = ''
|
|
key_buffer_size = 16M
|
|
max_allowed_packet = 16M
|
|
thread_stack = 192K
|
|
thread_cache_size = 8
|
|
|
|
# This replaces the startup script and checks MyISAM tables if needed
|
|
# the first time they are touched
|
|
# myisam-recover = BACKUP
|
|
|
|
#max_connections = 100
|
|
#table_cache = 64
|
|
#thread_concurrency = 10
|
|
#
|
|
# * Query Cache Configuration
|
|
#
|
|
query_cache_limit = 1M
|
|
query_cache_size = 16M
|
|
|
|
#Bitrix recomendations
|
|
table_open_cache = 1024
|
|
transaction-isolation = READ-COMMITTED
|
|
|
|
#
|
|
# * Logging and Replication
|
|
#
|
|
# Both location gets rotated by the cronjob.
|
|
# Be aware that this log type is a performance killer.
|
|
# As of 5.1 you can enable the log at runtime!
|
|
#general_log_file = /var/log/mysql/mysql_general.log
|
|
#general_log = 1
|
|
#
|
|
# Error logging goes to syslog due to /etc/mysql/conf.d/mysqld_safe_syslog.cnf.
|
|
#
|
|
# Here you can see queries with especially long duration
|
|
#log_slow_queries = /var/log/mysql/mysql-slow.log
|
|
#long_query_time = 2
|
|
#log-queries-not-using-indexes
|
|
#
|
|
# The following can be used as easy to replay backup logs or for replication.
|
|
# note: if you are setting up a replication slave, see README.Debian about
|
|
# other settings you may need to change.
|
|
#server-id = 1
|
|
#log_bin = /var/log/mysql/mysql-bin.log
|
|
expire_logs_days = 10
|
|
max_binlog_size = 100M
|
|
#binlog_do_db = include_database_name
|
|
#binlog_ignore_db = include_database_name
|
|
|
|
#
|
|
# * InnoDB
|
|
#
|
|
# InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/.
|
|
# Read the manual for more InnoDB related options. There are many!
|
|
#
|
|
# * 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
|
|
innodb_buffer_pool_size=512M
|
|
# innodb_additional_mem_pool_size=128M
|
|
# innodb_file_io_threads=8
|
|
innodb_lock_wait_timeout=50
|
|
innodb_log_buffer_size=8M
|
|
innodb_flush_log_at_trx_commit=2
|
|
|
|
#bitrix
|
|
innodb_flush_method = O_DIRECT
|