65 lines
2.1 KiB
INI
65 lines
2.1 KiB
INI
# For advice on how to change settings please see
|
||
# http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html
|
||
|
||
[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
|
||
|
||
# These are commonly set, remove the # and set as required.
|
||
basedir = /home/work/.local/mysql-5.7.24
|
||
datadir = /data/work/.local/var/lib/mysql57
|
||
plugin-dir = /data/work/.local/mysql-5.7.24/lib/plugin
|
||
# user = work
|
||
log-error = /data/work/.local/var/log/mysql57/mysqld.log
|
||
pid-file = /data/work/.local/var/lib/mysql57/your.machine.com.mysql57.pid
|
||
port = 3306
|
||
socket = /data/work/.local/var/lib/mysql57/mysql.sock
|
||
server_id = 1
|
||
|
||
# disable ssl encryption
|
||
skip-ssl
|
||
|
||
# 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
|
||
|
||
character-set-server = utf8mb4
|
||
collation-server = utf8mb4_unicode_ci
|
||
init_connect='SET NAMES utf8mb4'
|
||
# skip-character-set-client-handshake = true
|
||
default-storage-engine = InnoDB
|
||
|
||
# 对于mysql服务器最大连接数值的设置范围比较理想的是:服务器响应的最大连接数值占服务器上限连接数值的比例值在10%以上,如果在10%以下,说明mysql服务器最大连接上限值设置过高。
|
||
max_connections = 200
|
||
max_user_connections = 100
|
||
max_allowed_packet = 256M
|
||
|
||
[client]
|
||
default-character-set=utf8mb4
|
||
socket = /data/work/.local/var/lib/mysql57/mysql.sock
|
||
|
||
[mysql]
|
||
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
|
||
socket = /data/work/.local/var/lib/mysql57/mysql.sock
|
||
|
||
[mysqld_safe]
|
||
socket = /data/work/.local/var/lib/mysql57/mysql.sock
|
||
pid-file = /data/work/.local/var/lib/mysql57/your.machine.com.mysql57.pid
|
||
default-character-set = utf8mb4
|
||
|
||
[mysqldump]
|
||
# 开启快速导出
|
||
quick
|
||
default-character-set = utf8mb4
|
||
max_allowed_packet = 256M
|
||
|