mysql5.7的my.cnf配置文件

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/bestxianfeng163/article/details/82345770

有些注释还是只能的有用的额

# For advice on how to change settings please see
# http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html
# *** DO NOT EDIT THIS FILE. It's a template which will be copied to the
# *** default location during install, and will be replaced if you
# *** upgrade to a newer version of MySQL.

[mysqld]

# Remove leading # and set to the amount of RAM for the most important data
# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
# innodb_buffer_pool_size = 128M

# Remove leading # to turn on a very important data integrity option: logging
# changes to the binary log between backups.
 log-bin=mysql-bin

# These are commonly set, remove the # and set as required.

 basedir = /usr/local/mysql
datadir =/usr/local/mysql/data
 port = 3306
server-id =130
binlog-do-db=user
relay-log=relay-mysql
relay-log-index=relay-mysql.index

character-set-server=utf8

# socket = .....

# Remove leading # to set options mainly useful for reporting servers.
# The server defaults are faster for transactions and fast SELECTs.
# Adjust sizes as needed, experiment to find the optimal values.
# join_buffer_size = 128M
# sort_buffer_size = 2M
# read_rnd_buffer_size = 2M 

sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES 


猜你喜欢

转载自blog.csdn.net/bestxianfeng163/article/details/82345770