[client]
port = 3306
socket = /tmp/mysql.sock
[mysqld]
log-bin = /data/mysql/bin/mysqlbinlog
server-id = 1

log-bin-trust-function-creators = 1

#binlog-do-db = ProjectM

#binlog-ignore-db = mysql
server-id = 1001
#binlog-do-db = ProjectM
#binlog-ignore-db = mysql
binlog_format = "MIXED"
bind-address = 0.0.0.0
port = 3306
tadir = /data/mysql
basedir = /usr/local/mysql
socket = /tmp/mysql.sock
default-storage-engine = INNODB
character-set-server = utf8
back_log = 500
slow-query-log = on
slow-query-log-file = /data/mysql/centos-slow.log
long_query_time = 0.5
max_connections = 512
max_connect_errors = 102400
max_allowed_packet = 16M
query_cache_type = 1
query_cache_size = 32M
query_cache_limit = 1M
max_heap_table_size = 64M
sort_buffer_size = 8M
join_buffer_size = 8M
thread_cache_size = 100
thread_concurrency = 8
thread_stack = 192K
ft_min_word_len = 4
tmp_table_size = 64M
binlog_cache_size = 1M
long_query_time = 100
key_buffer_size = 32M
myisam_repair_threads= 1
myisam_recover
wait_timeout = 28800
interactive_timeout = 28800
skip-name-resolve
sql-mode="NO_ENGINE_SUBSTITUTION"
transaction_isolation = REPEATABLE-READ
innodb_buffer_pool_size = 1G
innodb_lock_wait_timeout = 120
"/etc/my.cnf" 82L, 2304C written
[root@node1 data]# service mysql restart
ERROR! MySQL server PID file could not be found!
Starting MySQL.. SUCCESS!
[root@node1 data]# vim /etc/my.cnf
[client]
port = 3306
socket = /tmp/mysql.sock
[mysqld]
log-bin = /data/mysql/bin/mysqlbinlog
server-id = 1001
#binlog-do-db = ProjectM
#binlog-ignore-db = mysql
binlog_format = "MIXED"
bind-address = 0.0.0.0
port = 3306
datadir = /data/mysql
basedir = /usr/local/mysql
socket = /tmp/mysql.sock
default-storage-engine = INNODB
character-set-server = utf8
back_log = 500
slow-query-log = on
slow-query-log-file = /data/mysql/centos-slow.log
long_query_time = 0.5
max_connections = 512
max_connect_errors = 102400
max_allowed_packet = 16M
query_cache_type = 1
query_cache_size = 32M
query_cache_limit = 1M
max_heap_table_size = 64M
sort_buffer_size = 8M
join_buffer_size = 8M
thread_cache_size = 100
thread_concurrency = 8
thread_stack = 192K
ft_min_word_len = 4
tmp_table_size = 64M
binlog_cache_size = 1M
long_query_time = 100
key_buffer_size = 32M
myisam_repair_threads= 1
myisam_recover
wait_timeout = 28800
interactive_timeout = 28800
skip-name-resolve
sql-mode="NO_ENGINE_SUBSTITUTION"
transaction_isolation = REPEATABLE-READ
innodb_buffer_pool_size = 1G
innodb_lock_wait_timeout = 120
innodb_thread_concurrency = 16
innodb_file_io_threads = 4
innodb_mirrored_log_groups = 1
innodb_flush_method = O_DIRECT
innodb_max_dirty_pages_pct = 90
innodb_log_file_size = 256M
innodb_log_buffer_size = 8M
innodb_log_files_in_group = 4
innodb_flush_log_at_trx_commit = 0
innodb_additional_mem_pool_size = 16M
innodb_data_file_path = ibdata1:10M:autoextend:max:400M
innodb_file_per_table = 1
[mysqldump]
quick
max_allowed_packet = 16M
[mysql]
pager = more
no-auto-rehash
prompt = '[\u@\h] (\d) \R:\m> '
[isamchk]
key_buffer = 64M
sort_buffer = 64M
read_buffer = 8M
write_buffer= 8M
[myisamchk]
key_buffer = 64M
sort_buffer = 64M
read_buffer = 8M
write_buffer= 8M
[mysqlhotcopy]
interactive-timeout
[mysqld_safe]
open-files-limit= 65535
user = mysql
log-error = /data/mysql/data/centos.err
pid-file = /data/mysql/data/centos.pid

mysql5.6安装优化实例的更多相关文章

  1. (转)mysql5.6.7多实例安装、配置的详细讲解分析及shell启动脚本的编写

    一.mysql安装 1.下载mysql数据库源码包: wget http://cdn.mysql.com/Downloads/MySQL-5.6/mysql-5.6.27.tar.gz 2.安装mys ...

  2. mysql5.6.40单实例安装二进制快捷安装

    mysql5.6.40单实例安装二进制快捷安装 近期因不同环境需要不同版本的mysql实例,故为了方便操作,特此记录下来,方便自己查找. # 1.1.Centos最小化安装推荐常用依赖包 yum cl ...

  3. CentOS7.2安装mysql-5.7.19多实例

    安装多实例之前首先需要先安装mysql,这里就不介绍如何安装mysql了,参考前面的博客:https://www.cnblogs.com/hei-ma/p/9505509.html 安装多实例之前需要 ...

  4. MySQL5.5安装与多实例

    MySQL5.5编译安装 #1.2 cmake软件 cd /home/oldboy/tools/ tar xf cmake-2.8.8.tar.gz cd cmake-2.8.8 ./configur ...

  5. linux mysql5.5安装与配置(转帖,在网上收集,自用)

    MySQL是一个关系型数据库管理系统 ,由瑞典MySQL AB公司开发,目前属于Oracle 公司.MySQL分为社区版和商业版,由于其体积小.速度快.总体拥有成本低,尤其是开放源码 这一特点,一般中 ...

  6. mysql5.6安装

    mysql5.6安装 #卸载原有的mysqlyum remove mysql*ls /etc/my.cnf*mv /etc/my.cnf* /tmp/ #安装依赖包yum install make c ...

  7. MySql5.5安装详细说明

      双击MySql5.5安装文件开始: next 打勾,Next 选Custom,原因如下面所述: Typical(典型安装) Installs the most common program fea ...

  8. MySQL 在Windows平台上的安装及实例多开

    MySQL在Windows平台上的安装及实例多开   by:授客 QQ:1033553122 测试环境 Win7 64 mysql-5.7.20-winx64.zip 下载地址: https://cd ...

  9. centos6安装多实例mysql

    centos 6.5,使用二进制安装多实例mysql 5.5.60 所需安装包mysql-5.5.60-linux-glibc2.12-x86_64.tar.gz.ncurses-devel-5.7- ...

随机推荐

  1. Linux下 rewrite_mod 的配置

    以下使用最新的 Ubuntu 16.04 测试; 安装好apache后先确认有没有rewrite模块,大多数情况下是有的:ls /etc/apache2/mods-available |grep re ...

  2. css3实现背景渐变

    #grad { background: -webkit-linear-gradient(left,rgba(255,0,0,0),rgba(255,0,0,1)); /* Safari 5.1 - 6 ...

  3. INotifyPropertyChanged

    在WPF MVVM模式开发中,实现INotifyPropertyChanged的ViewModel是非常重要且常见的类: public class MainViewModel : INotifyPro ...

  4. Cisco IP 电话 将它的voice mail 发送到手机

    功能一.将语音转成文字发送短信(有微软认知.百度认知.云片短信API) 功能二.直接将音频发送到微信 不废话,直接送个包 链接: https://github.com/JaviZhu/KLCN.Spe ...

  5. CF 1041 1042整理

    终于回来整理了,这两场比赛我也是醉了,第一场-1分,第二场被skip,还是太菜啊qaq CF1041 T1T2过水忽略直接看后面 T3大意:给你一个长度为n的序列a1,a2,a3···an,你需要把这 ...

  6. Spring Boot2.0自定义配置文件使用

    声明: spring boot 1.5 以后,ConfigurationProperties取消locations属性,因此采用PropertySource注解配合使用 根据Spring Boot2. ...

  7. Codeforces Round #437 Div. 1

    A:显然构造一组只包含1和2面值的数据即可. #include<iostream> #include<cstdio> #include<cmath> #includ ...

  8. Docker基本使用(一)

    使用docker输入hello world Docker 允许你在容器内运行应用程序, 使用 docker run 命令来在容器内运行一个应用程序. 输出Hello world $ docker ru ...

  9. 为何在新线程中使用注解获取不到Spring管理的Bean

    新建的线程类NewThread,在这个类中国使用Spring的注解获取Service,为null 网上已有这种问题的解决方案,但是为何在新线程中使用注解获取不到Spring管理的Bean? 问了老大, ...

  10. Collect devices information

    Collect devices information root@vpx-test# kenv > kenv.txt root@vpx-test# sysctl -a > sysctl_a ...