[client]
port=3306
socket = /tmp/mysql.sock
default-character-set=utf8
[mysqld] # 1 general config port=3306
socket = /tmp/mysql.sock
datadir = /u02/mysql
binlog_cache_size = 1M
default-storage-engine = innodb
event_scheduler = 1
federated
join_buffer_size = 16M
local-infile=1
#log-slow-queries=/u02/mysql/aslowquery.log
long_query_time = 10
slow_query_log
lower_case_table_names=1
max_heap_table_size = 256M
max_length_for_sort_data = 2048
open-files-limit = 16384
#mem 16G-32G 1 64G-512G 2
query_cache_size = 32M
query_cache_type= 1
skip-name-resolve
#table_cache=1024
thread_cache=1024
thread_cache_size = 1024
thread_stack = 256K
tmp_table_size = 512M
sort_buffer_size = 32M
large-pages=1 # 2 network config back_log = 1000
max_connect_errors = 500
max_connections = 10000
max_user_connections=10000
max_delayed_threads = 200
max_prepared_stmt_count = 65528
max_allowed_packet = 256M
net_read_timeout = 36000
net_write_timeout = 36000
wait_timeout = 43200 # 3 myisam config #myisam insert select,insert values,load data infile perf 16G 1,32G 2 64G-512G 4
bulk_insert_buffer_size = 128M
concurrent_insert=2
#use myisam fulltext only
ft_min_word_len = 4
#60% mem 1/3,other 2/3 innodb_buffer_pool_size
key_buffer_size = 512M
#low-priority-updates=1
max_write_lock_count=1
myisam_max_sort_file_size = 1G
myisam_recover
myisam_repair_threads = 1
#myisam perf 16G 1 32G-512G 2
myisam_sort_buffer_size = 256M
read_buffer_size = 32M
read_rnd_buffer_size = 32M
skip-external-locking # 4 innodb config innodb_file_per_table
innodb_additional_mem_pool_size = 16M
#60% mem 2/3, other 1/3 myisam key_buffer_size
innodb_buffer_pool_size = 256M
innodb_data_file_path = ibdata1:1000M:autoextend
innodb_flush_log_at_trx_commit = 0
innodb_lock_wait_timeout = 120
innodb_log_buffer_size = 8M
innodb_log_file_size = 256M
innodb_log_files_in_group = 3
innodb_max_dirty_pages_pct = 90
innodb_read_io_threads = 8
innodb_thread_concurrency = 16
innodb_write_io_threads = 8
innodb_data_home_dir = /u02/mysql
innodb_log_group_home_dir = /u02/mysql
innodb_old_blocks_time=1000
#Only FIO Disk
innodb_flush_method = O_DIRECT # 5 replication config
expire_logs_days = 7
#log-slave-updates
slave-skip-errors = all
slave_net_timeout = 36000
server-id = 105240
replicate_wild_do_table=wms.%
replicate_wild_ignore_table=mysql.%
log-bin=mysql-bin
log-slave-updates [mysql] no-auto-rehash [mysqldump] quick
max_allowed_packet = 128M [myisamchk] key_buffer = 4096M
sort_buffer_size = 512M
read_buffer = 8M
write_buffer = 8M [mysqlhotcopy] interactive-timeout [mysqld_safe] malloc-lib=tcmalloc

mysql /etc/my.cnf的更多相关文章

  1. MYSQL服务器my.cnf配置文档详解

    MYSQL服务器my.cnf配置文档详解 硬件:内存16G [client] port = 3306 socket = /data/3306/mysql.sock [mysql] no-auto-re ...

  2. MySQL配置文件my.cnf 例子最详细翻译

    转的 MySQL配置文件my.cnf 例子最详细翻译,可以保存做笔记用. #BEGIN CONFIG INFO#DESCR: 4GB RAM, 只使用InnoDB, ACID, 少量的连接, 队列负载 ...

  3. mysql配置文件my.cnf详解

    原文地址:mysql配置文件my.cnf详解 作者:gron basedir = path 使用给定目录作为根目录(安装目录). character-sets-dir = path 给出存放着字符集的 ...

  4. MySQL数据库my.cnf配置文件注释详解

    我们知道,在MySQL数据库安装完成后,要对my.cnf配置文件进行适当的修改才能充分利用MySQL数据库的功能.但是对于初学者来说,修改my.cnf配置文件似乎是一个比较难的过程.为了解决这个问题, ...

  5. MySQL 配置文件my.cnf

    转载: MySQL配置文件my.cnf 详解:#BEGIN CONFIG INFO#DESCR: 4GB RAM, 只使用InnoDB, ACID, 少量的连接, 队列负载大#TYPE: SYSTEM ...

  6. mysql学习3:mysql之my.cnf详解

    mysql之my.cnf详解 本文转自:https://www.cnblogs.com/panwenbin-logs/p/8360703.html 以下是 my.cnf 配置文件参数解释: #*** ...

  7. mysql之my.cnf详解

    以下是 my.cnf 配置文件参数解释: #*** client options 相关选项 ***# #以下选项会被MySQL客户端应用读取.注意只有MySQL附带的客户端应用程序保证可以读取这段内容 ...

  8. mysql的my.cnf参数详解

    转载[Mysql] MySQL配置文件my.cnf的理解 一.缘由 最近要接手数据库的维护工作,公司首选MySQL.对于MySQL的理解,我认为很多性能优化工作.主从主主复制都是在调整参数,来适应不同 ...

  9. MySQL数据库my.cnf性能参数如何调优

    提供一个MySQL 5.6版本适合在1GB内存VPS上的my.cnf配置文件.配置文件可以到这里下载:: 下载my.cnf [client] port = 3306 socket = /tmp/mys ...

  10. MySQL配置文件my.cnf中文详解附mysql性能优化方法分享

    Mysql参数优化对于新手来讲,是比较难懂的东西,其实这个参数优化,是个很复杂的东西,对于不同的网站,及其在线量,访问量,帖子数量,网络情况,以及机器硬件配置都有关系,优化不可能一次性完成,需要不断的 ...

随机推荐

  1. POJ1379:Run Away

    我对模拟退火的理解:https://www.cnblogs.com/AKMer/p/9580982.html 我对爬山的理解:https://www.cnblogs.com/AKMer/p/95552 ...

  2. 利用dynamic来提供动态方法的性能

    前段时间做了一个worklist的项目,有部分是利用xml配置DICOM的tag,然后根据xml把DICOM的Dataset转为实体类,或者把实体类转为Dataset. 当中主要应用了反射来调用Dat ...

  3. Azure xplate cli创建虚拟机

    Azure的管理工具多种多样.其中Portal和PowerShell是经常使用的. 但用MAC和Linux的同学最喜欢的还是Bash环境. Azure也提供了跨平台的命令行工具:Azure xplat ...

  4. HDOJ1242(延时迷宫BFS+优先队列)

    Rescue Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Subm ...

  5. linux日常管理-xarge_exec

    在find搜索到文件之后再进行操作 exec是find的一个选项. {}表示前面搜索到的结果,\:是exec特殊的用法. xarge拥有同样的功能,需用选项 -i 可以用在其他命令的后面

  6. MySQL的变量--系统变量、状态变量

    MySQL的变量分为以下两种:1)系统变量:配置MySQL服务器的运行环境,可以用show variables查看2)状态变量:监控MySQL服务器的运行状态,可以用show status查看 一.系 ...

  7. ubuntu下root用户默认密码及修改方法

    [ubuntu下root用户默认密码及修改方法] 很多朋友用ubuntu,一般都是装完ubuntu系统,马上就修改root密码了,那么root用户的默认密码是多少,当忘记root用户密码时如何找回呢, ...

  8. koa2,koa1框架安装

    koa2版本安装: npm install koa@ -g hello2.js var Koa = require('koa'); var app = new Koa(); app.use(ctx = ...

  9. 使用Openssl编译svn并安装

    我的操作系统是CentOS 6.8.公司的svn服务器安装在windows系统中,并且使用 VisualSVN 对外提供https服务. 在centos 6.8上如果我使用yum 安装svn,那么根本 ...

  10. 具体问题:3、hibernate跟Mybatis/ ibatis 的区别,为什么选择?

    第一章     Hibernate与MyBatis Hibernate 是当前最流行的O/R mapping框架,它出身于sf.net,现在已经成为Jboss的一部分. Mybatis 是另外一种优秀 ...