Имеем Centos7 + Plesk12.5 + 5.5.44-MariaDB
Есть дефолтный /etc/my.cnf
Код: Выделить всё
[mysqld]
bind-address = ::
skip_name_resolve
local-infile=0
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
# Settings user and group are ignored when systemd is used.
# If you need to run mysqld under a different user or group,
# customize your systemd unit file for mariadb according to the
# instructions in http://fedoraproject.org/wiki/Systemd
[mysqld_safe]
log-error=/var/log/mariadb/mariadb.log
pid-file=/var/run/mariadb/mariadb.pid
#
# include all files from the config directory
#
!includedir /etc/my.cnf.dМне необходимо внести сл. параметры:
Код: Выделить всё
innodb_buffer_pool_size=780M
innodb_additional_mem_pool_size=20M
innodb_read_io_threads=8
innodb_lock_wait_timeout=50
innodb_log_file_size=100M
innodb_log_buffer_size=16M
innodb_flush_log_at_trx_commit=0
table_cache=4096
tmp_table_size=32m
join_buffer_size = 2M
key_buffer_size=16M
sort_buffer=8M
read_buffer_size=16M
query_cache_size=64M
query_cache_type=1Простая вставка этих строк в файл /etc/my.cnf никакого результата не дает.
У меня есть несколько вопросов:
1. Что означает ! в начале строки !includedir /etc/my.cnf.d? В папке /etc/my.cnf.d лежат три файла client.cnf, mysql-clients.cnf, server.cnf
2. Что означают разделители [mysqld], [mysqld_safe] и как ими пользоваться?
3. Самое главное - куда и как мне внести нужные директивы?