I want to turn my MariaDB server, but all of my string in /etc/my.cnf ignored.
my.cnf below:
------------------
[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
[innodb]
innodb_flush_log_at_trx_commit=0
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
#
# include all files from the config directory
#
!includedir /etc/my.cnf.d
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
--------------
For example, if I look through mysql>show variable; I see innodb_buffer_pool_size=128M
my.cnf below:
------------------
[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
[innodb]
innodb_flush_log_at_trx_commit=0
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
#
# include all files from the config directory
#
!includedir /etc/my.cnf.d
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
--------------
For example, if I look through mysql>show variable; I see innodb_buffer_pool_size=128M