File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
MySQL-Settings/MySQL-5.6/1G-Memory-Machine Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,18 @@ log-error = /usr/program/mysql/data/mysql-error.log
39
39
# (重点修改)表示是本机的序号为1,一般配合设置主从的时候一定要修改的地方
40
40
server-id = 1
41
41
42
-
42
+ # 从库特有的设置 start
43
+ read_only = true
44
+ # 从库不自动开启主从设置,需要使用命令:START SLAVE;
45
+ skip-slave-start = true
46
+ log-slave-updates = true
47
+ relay-log = /usr/program/mysql/data/relay-bin
48
+ # 单位秒
49
+ slave-net-timeout = 60
50
+ sync_master_info = 1
51
+ sync_relay_log = 1
52
+ sync_relay_log_info = 1
53
+ # 从库特有的设置 end
43
54
44
55
# back_log 值指出在 MySQL 暂时停止回答新请求之前的短时间内多少个请求可以被存在堆栈中。如果 MySQL 的连接数据达到 max_connections 时,新来的请求将会被存在堆栈中,以等待某一连接释放资源,该堆栈的数量即 back_log,如果等待连接的数量超过 back_log,将不被授予连接资源。
45
56
# 另外,这值(back_log)限于您的操作系统对到来的 TCP/IP 连接的侦听队列的大小。你的操作系统在这个队列大小上有它自己的限制(可以检查你的 OS 文档找出这个变量的最大值),试图设定 back_log 高于你的操作系统的限制将是无效的。
You can’t perform that action at this time.
0 commit comments