# 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
最后编辑于 :
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
推荐阅读更多精彩内容
- 首先,请确认正确安装好MySQL。 一、配置环境变量path(可跳过) 1.1 打开终端,输入:cd ~ 会进入 ...
- 1.一般mysql安装路径为/usr/bin/mysql。 2./etc/my.cnf的权限过高会导致mysql无...
- 版权声明:本文为博主原创文章,未经博主允许不得转载。 转载请注明出处:http://blog.csdn.net/l...
- 在Nginx, Java, MySQL的体系架构中,MySQL对于性能的影响很大,也是关键的核心部分。同时,MyS...