mysql 从的配置文件

[client]
port = 3306
socket = /data/mysql/data/mysql.sock
#default-character-set=utf8
[mysqld]
#skip-grant-tables
sync_binlog=0
innodb_flush_log_at_trx_commit=0
default-time-zone = '+8:00'
local-infile=0
skip-name-resolve
skip-external-locking
back_log = 300
max_connections = 1000 
max_allowed_packet = 32M
binlog_cache_size = 1M
max_heap_table_size = 64M
sort_buffer_size = 2M
query_cache_type=0
join_buffer_size = 2M
thread_cache = 8
ft_min_word_len = 4
thread_stack = 192K
tmp_table_size = 64M
port = 3306
socket = /data/mysql/data/mysql.sock
skip-external-locking
key_buffer_size = 16M
table_open_cache = 400 
net_buffer_length = 8K
read_buffer_size = 256K
read_rnd_buffer_size = 512K
myisam_sort_buffer_size = 8M
datadir=/data/mysql/data
log-bin=mysql-bin
replicate-ignore-db=test
replicate-ignore-db=performance_schema
replicate-ignore-db=information_schema
binlog-ignore-db=mysql
binlog-ignore-db=information_schema
binlog_format=row
server-id =202
relay-log=relay-bin
relay-log-index=relay-bin
log-queries-not-using-indexes
long_query_time =1
slow_query_log=on
log_queries_not_using_indexes=off
slow_query_log_file=/data/mysql/logs/slow_query.log
log-error=/data/mysql/logs/error.log
key_buffer_size = 32M
read_buffer_size = 2M
read_rnd_buffer_size = 2M
bulk_insert_buffer_size = 64M
myisam_sort_buffer_size = 32M
myisam_max_sort_file_size = 10M
myisam_repair_threads = 1
myisam_recover
innodb_buffer_pool_size=5000M
innodb_additional_mem_pool_size=32M
innodb_data_file_path = ibdata1:10M:autoextend
innodb_file_io_threads = 4
innodb_thread_concurrency = 16
innodb_log_buffer_size = 8M
innodb_log_file_size = 128M
innodb_log_files_in_group = 3
innodb_max_dirty_pages_pct = 90
innodb_lock_wait_timeout = 120
innodb_file_per_table=1
innodb_open_files=500
character-set-server = utf8
wait_timeout=300
interactive_timeout=300
innodb_flush_method=O_DIRECT
log-bin-trust-function-creators=1
log_slave_updates = 1
relay-log = /data/mysql/logs/relay-log.log

[mysqldump]
quick
max_allowed_packet = 16M
user=root
password=root

[mysql]
no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
#safe-updates
#user=root
#password=root

[myisamchk]
key_buffer_size = 20M
sort_buffer_size = 20M
read_buffer = 2M
write_buffer = 2M

[mysqlhotcopy]
interactive-timeout

最新文章

  1. Hive_配置远程Metastore
  2. favicon.ico应用与正则表达式验证邮箱(可自动删除前后的空格)
  3. JAVA thread0.interrupt()方法
  4. 寒假 D3 D Modular Inverse
  5. 蓝牙HID协议笔记
  6. Eclipse Android HH and theme
  7. Swift学习笔记八
  8. shell 数学计算
  9. StringGrid右击选中表格(发消息给句柄模拟点击,右键点击也是MouseDown)
  10. win7 vs2010 安装cocos2d-x
  11. Js闭包的用途
  12. quagga源码分析--通用库command
  13. OC--初始化UINavigationController
  14. TortoiseGit 安装
  15. 小米5查看设备号信息及验证type-c数据线
  16. RabbitMQ 学习专栏
  17. 01:open-falcon入门篇
  18. ionic打包步骤(安卓)
  19. c++第十七天
  20. redis实现分布式锁 转自importnew 记录一下

热门文章

  1. linux查看tomcat启动运行日志
  2. part2
  3. if判断,switch语句
  4. (转)Android 只开启一个Activity实例
  5. P1348 Couple number
  6. 每日一练之大整数加法(P1255 数楼梯)
  7. js:上传图片并预览(https://blog.csdn.net/weixin_38023551/article/details/78318532)
  8. socket.io诡异的问题
  9. 第8章 IO库 自我综合练习
  10. Mysql出现(10061)错误提示的暴力解决办法