mysql配置文件
主从配置:参考 https://www.cnblogs.com/kylinlin/p/5258719.html
[client]
default-character-set=utf8
[mysql]
default-character-set=utf8
[mysqld]
collation-server=utf8_unicode_ci
init-connect='SET NAMES utf8'
character-set-server=utf8
# Disabling symbolic-links is recommended to prevent assorted security risks
lower_case_table_names=1
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
# 主从复制时用
#log-bin=mysql-bin #启用二进制日志, 从库不需要开启日志
#server-id=2 #本机数据库ID 标示 从库ID号,不要和主库ID相同
#binlog-do-db=iep #可以被从服务器复制的库。二进制需要同步的数据库名 从库不需要
#binlog-ignore-db=mysql #不可以被从服务器复制的库 从库不需要
[mysqld_safe]
log-error=/data/log/mysql/mysql_error.log
pid-file=/var/run/mysql/mysql.pid
#
# include all files from the config directory
#
!includedir /etc/my.cnf.d