美文网首页
MySQL配置文件my.cnf

MySQL配置文件my.cnf

作者: Samlen_Tsoi | 来源:发表于2018-05-31 10:45 被阅读0次
# For advice on how to change settings please see
# http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html
[client]
default-character-set = utf8mb4
[mysql]
default-character-set = utf8mb4
[mysqld]
character-set-client-handshake = FALSE
character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci
init_connect='SET NAMES utf8mb4

# 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

# These are commonly set, remove the # and set as required.
basedir = /Users/samlen_tsoi/Develop/mysql-5.6.37-macos10.12-x86_64
datadir = /Users/samlen_tsoi/Develop/mysql-5.6.37-macos10.12-x86_64/data
# port = .....
# server_id = .....
# 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

secure-file-priv="/Users/samlen_tsoi"

相关文章

网友评论

      本文标题:MySQL配置文件my.cnf

      本文链接:https://www.haomeiwen.com/subject/oztqsftx.html