mysql5.6 配置 文件
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 配置 文件的更多相关文章
- Centos7 操作系统 mysql5.7 配置远程登陆操作
Centos7 操作系统: mysql5.7 配置远程登陆操作: 首先登陆服务器,进入数据库: mysql -u root -p show databases; use mysql; show tab ...
- MySQL5.7配置(第一次使用)
MySQL5.7配置(第一次使用) 最近因为工作需要学习mysql的增删改查.用的公司的电脑,之前有人已经安装过mysql5.7,等于使用了免安装版,重新开始配置.参考了以下文章 http://blo ...
- mysql5.x数据库文件导入mysql5.7数据库出错解决方法
由于mysql5.7 timestamp 类型不允许timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',创建表的是后会报异常 修改mysql5.7的配置文 ...
- [很郁闷]python2.7连接mysql5.5配置
前言:今天在公司电脑上python版本跟自己家里电脑上的一样,不一样的是mysql公司版本5.6,结果花了两天的时间都没配置好python和mysql 简单说就是python连接mysql一直报200 ...
- CentOS7+mysql5.6配置主从
一.安装环境 操作系统:CentOS-7-x86_64-DVD-1611.iso数据库版本:mysql-5.6.39-linux-glibc2.12-x86_64.tar.gz数据库地址: 192.1 ...
- MySQL5.7配置基于GTID的复制
MySQL5.7下配置GTID复制的方法: 修改主库和从库的配置文件,加入下列部分的配置项:主库:[mysqld]log-bin=mysql-binbinlog_format= ROWgtid-mod ...
- centos7.2+php7.2+nginx1.12.0+mysql5.7配置
一. 源码安装php7.2 选择需要的php版本 从 php官网: http://cn2.php.net/downloads.php 选择需要的php版本,选择.tar.gz 的下载包,点击进入,选择 ...
- php5.6 + apache2.4+mysql5.7 配置
----------------------------------------------------- ★软件工具:(下载时注意下载相应版本,不同版本安装细节可能会有差异!!) 1>http ...
- mysql5.7通过文件zip方式安装-九五小庞
为什么通过zip的方式进行安装 电脑上已安装过mysql数据库,想要再安装一个. 1.下载mysql安装包 直接找到mysql官网,在官网上下载zip安装包. https://downloads.my ...
随机推荐
- C++有关拷贝构造函数(默认/浅/深拷贝构造函数)
拷贝结构函数顾名思义就是复制对象. 先讲一下默认拷贝函数: 默认拷贝就是直接赋值,让程序调用默认拷贝结构函数. Student p1; Student p2 = p1//或者Student p2(p1 ...
- css有关鼠标移动上去图片变透明度变化
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/ ...
- $.get和$.post实例
get和post用法一样,我只写个$.get的. [HTML] <input type="text" id="myFishName" name=" ...
- ubuntu .net core The specified framework 'Microsoft.NETCore.App', version '1.0.1' was not found
想在ubuntu下试试.net core mvc,按照官方教程走完,然后把在window 下做好的项目想在ubuntu下试试,然后输入了 git clone https://github.com/ka ...
- AngularJS表单验证开发案例
angular支持IE8+浏览器,虽然性能很好,但是目前只适用于手机端项目 知识点:域$scopeAngularJS基础指令指令实现不同的功能学习思路和方法 <link rel="st ...
- jQuery核心探究
动画animate.animate({}, { duration: 5000, progress: function (now, progressNum) {}, complete: function ...
- git 获取领先落后的命令
git --git-dir=/data/usr/local/gerrit-site/git/aixuexi-admin.git rev-list --left-right --count master ...
- megacli使用
查看raid类型 /opt/RAID/MegaCli64 -ShowSummary -a0 System Operating System: Linux version 2.6.32-220.el6. ...
- jsp:jsp包含文件的两种方式
第一种:include指令 include指令:当JSP转换成Servlet时引入指定文件(指令元素),这是一种静态包含,它运行的时候不会单独编译成.class文件,它生成一个新的整体.class文件 ...
- JAVA StringBuffer的用法
在使用StringBuffer 的时候,习惯性的像String一样把他初始化了 StringBuffer result = null; 结果警告:Null pointer access: The va ...