this section [mysql] is for the base mariadb 5.5 that is in use for core services. some of them are not compatible with higher version of maria.
so again put your fragment a the right 105-99yourname position and do not use any section header,
you should see something like that in /etc/my.cnf after expanding
#------------------------------------------------------------
# !!DO NOT MODIFY THIS FILE!!
#
# Manual changes will be lost when this file is regenerated.
#
# Please read the developer's guide, which is available
# at http://www.contribs.org/development/
#
# Copyright (C) 1999-2006 Mitel Networks Corporation
#------------------------------------------------------------
###########################################################
# Here is a cheat-sheet for this file as of MySQL 4.0.14
# 2003-12-18 - tony_clayton@mitel.com
#
# 1. The mysqld binary reads options from the [mysqld] section,
# and then overrides those values with any passed-in
# arguments.
#
# 2. The mysqld_safe script reads options from the following
# sections in order, overriding any previous values with newer
# ones:
# [mysqld] [server] [mysqld_safe] [safe_mysqld]
# It then overrides those values with any passed-in
# arguments, and invokes the mysqld binary (see #1 above) with
# the resulting argument list.
#
# * The server and safe_mysqld sections are deprecated in
# favour of mysqld and mysqld_safe respectively.
#
# 3. The mysql or mysqld initscript reads options from the
# following sections in order, overriding any previous values
# with newer ones:
# [mysqld] [mysql_server] [mysql.server]
# It then overrides those values with any passed-in arguments,
# and invokes the mysqld_safe script (see #2 above) with the
# resulting argument list.
#
# * The SMEServer doesn't have any need for initscript-only
# options, so we don't use mysql_server and mysql.server
# sections.
#
###########################################################
[mysqld]
pid-file=/var/run/mariadb/mariadb.pid
basedir=/usr
datadir=/var/lib/mysql
# innodb custom template
socket=/var/lib/mysql/mysql.sock
# networking is enabled
user=mysql
open_files_limit=32186
query_cache_size=1M
query_cache_type=1
thread_cache_size=256
join_buffer_size=262144
max_connect_errors=100
max_allowed_packet=16M
log_error=/var/log/mariadb/mariadb.log
[mysqld_safe]
[mariadb-10.5]
basedir=/opt/rh/rh-mariadb105/root/usr
datadir=/var/opt/rh/rh-mariadb105/lib/mysql
socket=/var/lib/mysql/mariadb105.sock
skip-networking
#no port as skip-networking
query_cache_size=1M
query_cache_type=1
thread_cache_size=256
join_buffer_size=262144
max_connect_errors=100
max_allowed_packet=16M
log_error=/var//log/mariadb105/mariadb.log
### your templates goes there