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. eclipse启动的时候报错An internal error occurred during: "Initializing Java Tooling"

    eclipse ->windows ->Perspactive -> Reset perspactive 重置视图可以解决

  2. 解决 eclipse cdt 运行时控制台乱码解决

    1 点击黑色 倒三角 按钮 选择 run configurations 2 2.1 点击new 添加 LANG = en_US 2.2 选择 replace native environment wi ...

  3. 修改model,映射到表中

    1. 当使用EF code first创建数据表后,数据库中会自动创建一个名为:dbo.__MigrationHistory的系统数据表, 如果尚未启用数据库迁移功能,那么每次在应用程序运行时,都会对 ...

  4. dotnetcharting 的简单使用

    dotnetcharting 是一个很好用的图表控件,能画出很漂亮的报表,一般常用到的主要有柱状图.饼图.折线图三种. dotnetcharting 有web版.winform版多个版本可供使用,官方 ...

  5. 软件测试技术第三次作业——打印质数printPrimes()

    作业一.Use the following method printPrimes() for questions a–d. printPrimes: /** ********************* ...

  6. Java 中的四种引用

    1.强引用(Strong Reference)在 Java 中四种引用中是“最强”的,我们平时通过 new 关键字创建的对象都属于强引用,如下面的代码: Person person = new Per ...

  7. React 表单组件

    诸如 <input>.<textarea>.<option> 这样的表单组件不同于其他组件,因为他们可以通过用户交互发生变化.这些组件提供的界面使响应用户交互的表单 ...

  8. ASP.NET 页面之间传递参数方法

    1.通过URL链接地址传递 (1) send.aspx代码 protected void Button1_Click(object sender, EventArgs e) { Request.Red ...

  9. VS2015卸载方法

    VS2015卸载 直接再控制面板的卸载程序中找到 VS2015 的程序,邮件更改,安装程序会被打开,里面有三个选项包含卸载,点击卸载[记得在卸载前如果有打开过 VS 最好重启一下,重启后不要打开 VS ...

  10. MVC学习笔记:MVC实现用户登录验证ActionFilterAttribute用法并实现统一授权

    在项目下新建一个文件夹来专门放过滤器类,首先创建一个类LoginFilter,这个类继承ActionFilterAttribute.用来检查用户是否登录和用户权限.: using System; us ...