博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
mysql从库上限_Mysql 主从限制数据库
阅读量:5106 次
发布时间:2019-06-13

本文共 1830 字,大约阅读时间需要 6 分钟。

主库配置

# For advice on how tochange settings please see

# http://dev.mysql.com/doc/refman/5.6/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.

[client]

port = 3306

socket=/tmp/mysql.sock

[mysqld]

port = 3306

socket=/tmp/mysql.sock

skip-external-locking

datadir=/usr/local/mysql/data

key_buffer_size = 32M

max_allowed_packet = 1M

table_open_cache = 4096

sort_buffer_size = 4M

read_rnd_buffer_size = 4M

myisam_sort_buffer_size = 64M

lower_case_table_names = 0

log-bin=master-bin

log-bin-index=master-bin.index

binlog_format=mixed

max_allowed_packet=50M

connect_timeout=60

net_read_timeout = 60

max_connections=2000

binlog-do-db=jrd

replicate-do-db=jrd

binlog-ignore-db=mysql

binlog-ignore-db=test

binlog-ignore-db=information_schema

binlog-ignore-db=performance_schema

replicate-ignore-db=test

replicate-ignore-db=mysql

replicate-ignore-db=information_schema

replicate-ignore-db=performance_schema

binlog-ignore-db=mysql,test

server-id = 1

# 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 = .....

# datadir = .....

# 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

转载地址:http://uqudv.baihongyu.com/

你可能感兴趣的文章
Oracle中的rownum不能使用大于>的问题
查看>>
[Data Structure & Algorithm] 有向无环图的拓扑排序及关键路径
查看>>
cassandra vs mongo (1)存储引擎
查看>>
Visual Studio基于CMake配置opencv1.0.0、opencv2.2
查看>>
遍历Map对象
查看>>
MySQL索引背后的数据结构及算法原理
查看>>
#Leetcode# 209. Minimum Size Subarray Sum
查看>>
SDN第四次作业
查看>>
DM8168 DVRRDK软件框架研究
查看>>
django迁移数据库错误
查看>>
yii 跳转页面
查看>>
洛谷 1449——后缀表达式(线性数据结构)
查看>>
Data truncation: Out of range value for column 'Quality' at row 1
查看>>
Dirichlet分布深入理解
查看>>
(转)Android之发送短信的两种方式
查看>>
python第九天课程:遇到了金角大王
查看>>
字符串处理
查看>>
HtmlUnitDriver 网页内容动态抓取
查看>>
ad logon hour
查看>>
获得进程可执行文件的路径: GetModuleFileNameEx, GetProcessImageFileName, QueryFullProcessImageName...
查看>>