Write MySQL5.7.28 profile

By default, MySQL service or client reads the configuration file as /etc/my.cnf, unless specified default-file

[mysqld]

port=3306

innodb_file_format=barracuda

innodb_large_prefix=on

lower_case_table_names=1

sql_mode=STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION

DATA = / 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

ma

#

# include all files from the config directory

#

!includedir /etc/my.cnf.d


[client]

port=3306

socket=/var/lib/mysql/mysql.sock


Guess you like

Origin blog.51cto.com/fengyuzaitu/2471769