我最近在我的服务器上安装了MariaDB;但是,它没有适当的数据库设置来进行调整/调整!这是我的" my.cnf":
[mysqld]
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
其他设置在哪里?如线程,内存调整等?
答案 0 :(得分:0)
添加您需要的内容。但一般情况下,您不需要对默认值进行任何更改,直到出现某种问题。