[mysqld] datadir=/opt/mysql/data socket=/opt/mysql/mysql.sock # Disabling symbolic-links is recommended to prevent assorted security risks symbolic-links=0 #language=/usr/share/mysql/english # 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] basedir=/opt/mysql datadir=/opt/mysql/data plugin-dir=/opt/mysql/plugin user=mysql socket=/opt/mysql/mysql.sock log-error=/opt/mysql/log/error.log pid-file=/opt/mysql/mysqld.pid port=3306 # # include all files from the config directory # !includedir /etc/my.cnf.d