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. 控制input输入框中提示信息的显示和隐藏的方法

    在运用html+css+javascrpt进行页面制作时,我们往往会遇到一些影响用户体验,而又容易被我们忽视的小细节.比如,input输入框中的提示信息,怎样才能根据对象获得和失去焦点而实现其显示和隐 ...

  2. asp实现网页浏览总数

    <% AlldayView=0 Set Rs=Server.CreateObject("Adodb.RecordSet") Sql="select * from v ...

  3. IsPostBack详解

    1.IsPostBack<只需要加载一次的代码放在if(!IsPostBack)中> 今天在最开始定义了全局变量取得radiobuttonlist中得到的value,但是因为autopos ...

  4. css 伪元素选择器

    /*设置第一个首字母的样式*/ p:first-letter{ color: red; font-size: 30px; } /* 在....之前 添加内容 这个属性使用不是很频繁 了解 使用此伪元素 ...

  5. python反爬之用户代理

    # requests是第三方库,需要安装 pip install requests import requests import random # 通常很多网站都会设置检测请求头中的User-Agen ...

  6. java技术小白的入门

    一.入门书籍 1,疯狂java讲义 2,java编程思想 3,Maven权威指南 4,Spring 3.0就是这么简单 5,Spring技术内幕 6,Spring实战 7,Maven实战 二.入门业务 ...

  7. switch 和 if...else if 的区别

     为什么很多人用  if...else..if   而不使用   switch 1,if...else...if 只是单纯地一个接一个比较:if...else可能每个条件都计算一遍: 2,switch ...

  8. 切片操作:MATLAB VS Python

    切片操作:MATLAB VS Python 一.MATLAB 矩阵的拆分 1.冒号表达式: t = e1:e2:e3 e1表示初始值,e2为步长,e3为终止值(包括e3),产生一个从e1到e3,步长为 ...

  9. Android AS升级3.1 编译报错:The SourceSet 'instrumentTest' is not recognized by the Android Gradle Plugin.

    AndroidStudio升级到3.1后编译报错:The SourceSet ‘instrumentTest’ is not recognized by the Android Gradle Plug ...

  10. zabbix web端有数据但是没有图形

    zabbix web端有数据但是没有图形 我遇到的情况是,在配置 zabbix 网站目录时,修改了zabbix 目录的所有者和所属组,以使得 zabbix/conf/zabbix.conf.php 文 ...