mysql5.6安装优化实例
[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安装优化实例的更多相关文章
- (转)mysql5.6.7多实例安装、配置的详细讲解分析及shell启动脚本的编写
一.mysql安装 1.下载mysql数据库源码包: wget http://cdn.mysql.com/Downloads/MySQL-5.6/mysql-5.6.27.tar.gz 2.安装mys ...
- mysql5.6.40单实例安装二进制快捷安装
mysql5.6.40单实例安装二进制快捷安装 近期因不同环境需要不同版本的mysql实例,故为了方便操作,特此记录下来,方便自己查找. # 1.1.Centos最小化安装推荐常用依赖包 yum cl ...
- CentOS7.2安装mysql-5.7.19多实例
安装多实例之前首先需要先安装mysql,这里就不介绍如何安装mysql了,参考前面的博客:https://www.cnblogs.com/hei-ma/p/9505509.html 安装多实例之前需要 ...
- 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 ...
- linux mysql5.5安装与配置(转帖,在网上收集,自用)
MySQL是一个关系型数据库管理系统 ,由瑞典MySQL AB公司开发,目前属于Oracle 公司.MySQL分为社区版和商业版,由于其体积小.速度快.总体拥有成本低,尤其是开放源码 这一特点,一般中 ...
- mysql5.6安装
mysql5.6安装 #卸载原有的mysqlyum remove mysql*ls /etc/my.cnf*mv /etc/my.cnf* /tmp/ #安装依赖包yum install make c ...
- MySql5.5安装详细说明
双击MySql5.5安装文件开始: next 打勾,Next 选Custom,原因如下面所述: Typical(典型安装) Installs the most common program fea ...
- MySQL 在Windows平台上的安装及实例多开
MySQL在Windows平台上的安装及实例多开 by:授客 QQ:1033553122 测试环境 Win7 64 mysql-5.7.20-winx64.zip 下载地址: https://cd ...
- centos6安装多实例mysql
centos 6.5,使用二进制安装多实例mysql 5.5.60 所需安装包mysql-5.5.60-linux-glibc2.12-x86_64.tar.gz.ncurses-devel-5.7- ...
随机推荐
- 为WebRTC 应用部署Turn Server
部署WebRTC 或 SIP p2p 方案时经常会遇到p2p 无法穿透的环境, 这时就是TunServer 的用武之地了. 这里我们使用turnserver-0.7.3 下载confuse依赖库 wg ...
- ASP.NET MVC和Web API中的Angular2 - 第2部分
下载源码 内容 第1部分:Visual Studio 2017中的Angular2设置,基本CRUD应用程序,第三方模态弹出控件 第2部分:使用Angular2管道进行过滤/搜索,全局错误处理,调试客 ...
- Linux下git的使用——将已有项目放到github上
本地已经有一个项目了,需要将该项目放到github上,怎么操作? 步骤: 本地安装git,有github账号是前提. (1)先在github创建一个空的仓库,并复制链接地址.使用https,以.git ...
- mysql出现ERROR1698(28000):Access denied for user root@localhost错误解决方法
我的操作系统是ubuntu18.04,以下是我的mysql版本: 安装完成后,登录mysql的时候就出现了如下错误: 因为安装的过程中没让设置密码,可能密码为空,但无论如何都进不去mysql. 那么该 ...
- Java WEB 乱码解决大全
来自 http://ligure.iteye.com/blog/ 中文乱码:在以后学习过程中全部采用UTF-8 1.文件的乱码 1.1.项目文本文件默认编码: [右击项目]->[P ...
- Visible Trees HDU - 2841
Visible Trees Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Tot ...
- centos6.8下普通用户下quartus编程识别不到用户开发板
前言 centos6.8下su用户下可以识别到用户的板子,能正常下板,而普通用户下无法探测到用户板子. 需要配置一下usb-blaster,不然的话,虽然quartus软件能识别,但是无法探测到FPG ...
- 【XSY2779】最小表示串 KMP DP polya定理
题目描述 给你一个字符串\(s\),问你有多少个串是最小表示串且字典序\(\leq s\) \(|s|\leq 1000\) 题解 先把\(s\)变成比\(s\)小的最大的最小表示串.方法是从后枚举每 ...
- EMM386和UMBPCI 区别
EMM386和UMBPCI 区别 1,SupportCD-ROM[HIMEM+EMM386NOEMS].支持光驱(EMM386模式)2,SupportCD-ROM[HIMEM+UMBPCI].支持光驱 ...
- Spring Data JPA Batch Insertion
转自:https://www.jeejava.com/spring-data-jpa-batch-insertion/ Spring Data JPA Batch Insertion will sho ...