mysql 3306 主库配置文件

[client]
port = 3306
default-character-set=utf8mb4
socket = /ssd/mysql/3306/tmp/mysql.sock
# Here follows entries for some specific programs # The MySQL server
[mysqld]
secure_file_priv="/"
#!include /ssd/mysql/3306/etc/mysqld.cnf
skip-slave-start
character-set-server=utf8mb4
slave-skip-errors = 1062
log-slave-updates
server-id=146
performance_schema = on
port = 3306
basedir = /usr/local/mysql
socket = /ssd/mysql/3306/tmp/mysql.sock
pid-file = /ssd/mysql/3306/data/mysql.pid
datadir = /ssd/mysql/3306/data
tmpdir = /ssd/mysql/3306/tmp
slave-load-tmpdir = /ssd/mysql/3306/tmp
skip-external-locking
skip-name-resolve
max_connections = 4000
max_connect_errors = 4000
back_log=600
wait_timeout=150
interactive_timeout=150
default_storage_engine=innodb
character_set_server=utf8mb4
key_buffer_size = 128M
max_allowed_packet = 128M
table_open_cache = 2048 thread_cache_size = 1000
query_cache_size = 256M
thread_concurrency = 48 log-bin = mysql-bin
#log-bin = 0
relay-log = relay-log
relay_log_index = relay-log.index log-warnings = 1
log-error = /ssd/mysql/3306/log/mysql.err slow_query_log = 1
long-query-time = 2
slow_query_log_file = /ssd/mysql/3306/log/slow.log #general_log = 1
#general_log_file = /ssd/mysql/3306/log/mysql.log
max_binlog_size = 1G
max_relay_log_size = 1G expire_logs_days = 7
binlog_cache_size = 64M replicate-wild-ignore-table = mysql.%
replicate-wild-ignore-table = test.% relay-log-purge = 1 key_buffer_size = 64M
sort_buffer_size = 16M
read_buffer_size = 16M
join_buffer_size = 16M
read_rnd_buffer_size = 64M
bulk_insert_buffer_size = 64M
myisam_sort_buffer_size = 64M
myisam_max_sort_file_size = 256M
myisam_repair_threads = 1
myisam_recover_options group_concat_max_len = 64K
transaction_isolation = REPEATABLE-READ innodb_file_per_table
innodb_file_format = Barracuda innodb_additional_mem_pool_size = 100M
innodb_buffer_pool_size = 25G
innodb_data_home_dir = /ssd/mysql/3306/data
innodb_data_file_path = ibdata1:1G:autoextend
innodb_file_io_threads = 4
innodb_read_io_threads =48
innodb_write_io_threads =48
innodb_io_capacity =600
innodb_thread_concurrency = 16
innodb_flush_log_at_trx_commit = 2
tmp_table_size = 128M innodb_log_buffer_size = 16M
innodb_log_file_size = 512M
innodb_log_files_in_group = 2
innodb_log_group_home_dir = /ssd/mysql/3306/data innodb_max_dirty_pages_pct = 90
innodb_lock_wait_timeout = 120 log-bin=mysql-bin
binlog_format=mixed
innodb_flush_method=O_DIRECT [mysqldump]
quick
max_allowed_packet = 16M [mysql]
no-auto-rehash [myisamchk]
key_buffer_size = 64M
sort_buffer_size = 64M
read_buffer = 2M
write_buffer = 2M [xtrabackup]
default-character-set = utf8 mysql 3336 从库配置文件 [client]
port = 3336
default-character-set=utf8mb4
socket = /ssd/mysql/3336/tmp/mysql.sock
# Here follows entries for some specific programs # The MySQL server
[mysqld]
secure_file_priv="/"
#!include /ssd/mysql/3336/etc/mysqld.cnf
skip-slave-start
character-set-server=utf8mb4
slave-skip-errors = 1062
log-slave-updates
server-id=147
performance_schema = on
port = 3336
basedir = /usr/local/mysql
socket = /ssd/mysql/3336/tmp/mysql.sock
pid-file = /ssd/mysql/3336/data/mysql.pid
datadir = /ssd/mysql/3336/data
tmpdir = /ssd/mysql/3336/tmp
slave-load-tmpdir = /ssd/mysql/3336/tmp
skip-external-locking
skip-name-resolve
max_connections = 4000
max_connect_errors = 4000
back_log=600
wait_timeout=150
interactive_timeout=150
default_storage_engine=innodb
character_set_server=utf8mb4
key_buffer_size = 128M
max_allowed_packet = 128M
table_open_cache = 2048 thread_cache_size = 1000
query_cache_size = 256M
thread_concurrency = 48 log-bin = mysql-bin
#log-bin = 0
relay-log = relay-log
relay_log_index = relay-log.index log-warnings = 1
log-error = /ssd/mysql/3336/log/mysql.err slow_query_log = 1
long-query-time = 2
slow_query_log_file = /ssd/mysql/3336/log/slow.log #general_log = 1
#general_log_file = /ssd/mysql/3336/log/mysql.log
max_binlog_size = 1G
max_relay_log_size = 1G expire_logs_days = 7
binlog_cache_size = 64M replicate-wild-ignore-table = mysql.%
replicate-wild-ignore-table = test.% relay-log-purge = 1 key_buffer_size = 64M
sort_buffer_size = 16M
read_buffer_size = 16M
join_buffer_size = 16M
read_rnd_buffer_size = 64M
bulk_insert_buffer_size = 64M
myisam_sort_buffer_size = 64M
myisam_max_sort_file_size = 256M
myisam_repair_threads = 1
myisam_recover_options group_concat_max_len = 64K
transaction_isolation = REPEATABLE-READ innodb_file_per_table
innodb_file_format = Barracuda innodb_additional_mem_pool_size = 100M
innodb_buffer_pool_size = 25G
innodb_data_home_dir = /ssd/mysql/3336/data
innodb_data_file_path = ibdata1:1G:autoextend
innodb_file_io_threads = 4
innodb_read_io_threads =48
innodb_write_io_threads =48
innodb_io_capacity =600
innodb_thread_concurrency = 16
innodb_flush_log_at_trx_commit = 2
tmp_table_size = 128M innodb_log_buffer_size = 16M
innodb_log_file_size = 512M
innodb_log_files_in_group = 2
innodb_log_group_home_dir = /ssd/mysql/3336/data innodb_max_dirty_pages_pct = 90
innodb_lock_wait_timeout = 120 log-bin=mysql-bin
binlog_format=mixed
innodb_flush_method=O_DIRECT [mysqldump]
quick
max_allowed_packet = 16M [mysql]
no-auto-rehash [myisamchk]
key_buffer_size = 64M
sort_buffer_size = 64M
read_buffer = 2M
write_buffer = 2M [xtrabackup]
default-character-set = utf8

  

mysql5.6 配置 文件的更多相关文章

  1. Centos7 操作系统 mysql5.7 配置远程登陆操作

    Centos7 操作系统: mysql5.7 配置远程登陆操作: 首先登陆服务器,进入数据库: mysql -u root -p show databases; use mysql; show tab ...

  2. MySQL5.7配置(第一次使用)

    MySQL5.7配置(第一次使用) 最近因为工作需要学习mysql的增删改查.用的公司的电脑,之前有人已经安装过mysql5.7,等于使用了免安装版,重新开始配置.参考了以下文章 http://blo ...

  3. mysql5.x数据库文件导入mysql5.7数据库出错解决方法

    由于mysql5.7 timestamp 类型不允许timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',创建表的是后会报异常 修改mysql5.7的配置文 ...

  4. [很郁闷]python2.7连接mysql5.5配置

    前言:今天在公司电脑上python版本跟自己家里电脑上的一样,不一样的是mysql公司版本5.6,结果花了两天的时间都没配置好python和mysql 简单说就是python连接mysql一直报200 ...

  5. CentOS7+mysql5.6配置主从

    一.安装环境 操作系统:CentOS-7-x86_64-DVD-1611.iso数据库版本:mysql-5.6.39-linux-glibc2.12-x86_64.tar.gz数据库地址: 192.1 ...

  6. MySQL5.7配置基于GTID的复制

    MySQL5.7下配置GTID复制的方法: 修改主库和从库的配置文件,加入下列部分的配置项:主库:[mysqld]log-bin=mysql-binbinlog_format= ROWgtid-mod ...

  7. centos7.2+php7.2+nginx1.12.0+mysql5.7配置

    一. 源码安装php7.2 选择需要的php版本 从 php官网: http://cn2.php.net/downloads.php 选择需要的php版本,选择.tar.gz 的下载包,点击进入,选择 ...

  8. php5.6 + apache2.4+mysql5.7 配置

    ----------------------------------------------------- ★软件工具:(下载时注意下载相应版本,不同版本安装细节可能会有差异!!) 1>http ...

  9. mysql5.7通过文件zip方式安装-九五小庞

    为什么通过zip的方式进行安装 电脑上已安装过mysql数据库,想要再安装一个. 1.下载mysql安装包 直接找到mysql官网,在官网上下载zip安装包. https://downloads.my ...

随机推荐

  1. C语言实现通用链表初步(三)----单元测试

    前两节,我们已经完成了链表的一些操作,快来测试一下吧. 这里使用的单元测试工具名字叫"check". START_TEST(my_slist_1) { struct student ...

  2. nginx的反向代理功能和负载均衡

    使用nginx实现反向代理 Nginx只做请求的转发,后台有多个http服务器提供服务,nginx的功能就是把请求转发给后面的服务器,决定把请求转发给谁. 1安装tomcat 在一个虚拟机上创建两个t ...

  3. [HZOI 2015]复仇的序幕曲

    [题目描述] 你还梦不梦痛不痛,回忆这么重你怎么背得动 ----序言 当年的战火硝烟已经渐渐远去,可仇恨却在阿凯蒂王子的心中越来越深 他的叔父三年前谋权篡位,逼宫杀死了他的父王,用铁血手腕平定了国内所 ...

  4. C# 压缩 解压 复制文件夹,文件的操作

    命名空间:namespace System.IO.Compression 压缩: //目标文件夹 string fileDirPath = "/Downloads/试题" + us ...

  5. vue的ajax

    vue的ajax常见的有两种 ,一种是 vue-resource,一种是axios vue-resource: 是vue的插件,非官方库, vue1.x 使用广泛 如何使用: 先在vue的脚本架上安装 ...

  6. springboot Aop配置,并使用自定义注解annotation,并且拦截service层

    前言 用Spring Boot的AOP来简化处理自定义注解,并将通过实现一个简单的方法执行判断节点是否开始的状态示列源码. AOP概念 面向侧面的程序设计(aspect-oriented progra ...

  7. document.URL 和 windows.location.href的区别

    1. 从输出结果上,document.URL 和 windows.location.href 没有区别.2. 非要说区别的话,你只可以读取document.URL的值,不能修改它.windows.lo ...

  8. C语言问题集

    征服C指针:P70#include "stdio.h" char *int_to_str(int int_value){ static char buf[20]; sprintf( ...

  9. IIS7 配置SSL 绑定主机头

    IIS7下面默认HTTPS绑定是无法指定主机头的,我们可以通过手工修改IIS配置来实现主机头绑定. 首先停止IIS服务. 然后打开C:/Windows/system32/inetsrv/config/ ...

  10. Cordova各个插件使用介绍系列(八)—$cordovaCamera筛选手机图库图片并显示

    原文档请看http://www.ncloud.hk/%E6%8A%80%E6%9C%AF%E5%88%86%E4%BA%AB/ionic%E5%9B%BE%E7%89%87%E4%B8%8A%E4%B ...