MySQL:日志配置

来自WHY42

/etc/my.cnf.d/server.cnf

[mysqld]
port=9307
lower_case_table_names = 1
log-error=/var/log/mysqld.log

如果开启SELinux将导致MySQL启动失败。