MySQL的My.cnf模板(转)
[client]
default-character-set = utf8mb4
port = PORT
socket = /srv/myPORT/run/mysql.sock [mysqld]
user = mysql
port = PORT
extra-port = 1PORT
character_set_server = utf8mb4
server_id = SERVER_ID
socket = /srv/myPORT/run/mysql.sock
basedir = /opt/percona-server
datadir = /srv/myPORT/data
log-error = /srv/myPORT/log/alert.log
pid-file = /srv/myPORT/run/mysql.pid
log_slave_updates =
log-bin = /srv/myPORT/log/mysql-bin
binlog_format = row
binlog_cache_size = 2M
max_binlog_cache_size = 4G
max_binlog_size = 1G
expire_logs_days =
relay-log = /srv/myPORT/log/relay-bin
relay-log-info-file = /srv/myPORT/log/relay-log.info
relay-log-index = /srv/myPORT/log/relay-log.index
master-info-file = /srv/myPORT/log/master.info
relay-log-recovery = true
sync-relay-log-info =
explicit_defaults_for_timestamp
key_buffer_size = 2M
sort_buffer_size = 2M
read_buffer_size = 2M
read_rnd_buffer_size = 16M
join_buffer_size = 2M
thread_cache_size =
query_cache_size = 1M
query_cache_limit = 1M
query_cache_min_res_unit = 2k
table_open_cache =
open_files_limit =
back_log =
max_connections =
max_user_connections =
max_connect_errors =
max_allowed_packet = 512M
thread_stack = 192k
default-storage-engine = INNODB
transaction_isolation = READ-COMMITTED
tmp_table_size = 16M
max_heap_table_size = 64M
bulk_insert_buffer_size = 64M
long_query_time = 0.5
slow_query_log = on
slow_query_log_file = /srv/myPORT/log/slow.log
skip-name-resolve
innodb_buffer_pool_size = 10G
innodb_data_file_path = ibdata1:2G:autoextend
innodb_file_io_threads =
innodb_purge_threads =
innodb_read_io_threads =
innodb_write_io_threads =
innodb_thread_concurrency =
innodb_buffer_pool_instances =
innodb_flush_log_at_trx_commit=
innodb_log_buffer_size = 16M
innodb_log_file_size = 2G
innodb_log_files_in_group =
innodb_max_dirty_pages_pct =
innodb_lock_wait_timeout =
innodb_file_per_table =
thread_handling = pool-of-threads
thread_pool_idle_timeout =
thread_pool_max_threads =
thread_pool_size =
thread_pool_oversubscribe =
thread_pool_stall_limit =
[mysqldump]
quick
max_allow_packet = 64M
[mysql]
no-auto-rehash
[mysqlhotcopy]
interactive-timeout
MySQL的My.cnf模板(转)的更多相关文章
- mysql配置文件my.cnf模板
[client] default-character-set = utf8mb4 port = PORT socket = /srv/myPORT/run/mysql.sock [mysqld] us ...
- MYSQL服务器my.cnf配置文档详解
MYSQL服务器my.cnf配置文档详解 硬件:内存16G [client] port = 3306 socket = /data/3306/mysql.sock [mysql] no-auto-re ...
- MySQL配置文件my.cnf 例子最详细翻译
转的 MySQL配置文件my.cnf 例子最详细翻译,可以保存做笔记用. #BEGIN CONFIG INFO#DESCR: 4GB RAM, 只使用InnoDB, ACID, 少量的连接, 队列负载 ...
- mysql配置文件my.cnf详解
原文地址:mysql配置文件my.cnf详解 作者:gron basedir = path 使用给定目录作为根目录(安装目录). character-sets-dir = path 给出存放着字符集的 ...
- MySQL数据库my.cnf配置文件注释详解
我们知道,在MySQL数据库安装完成后,要对my.cnf配置文件进行适当的修改才能充分利用MySQL数据库的功能.但是对于初学者来说,修改my.cnf配置文件似乎是一个比较难的过程.为了解决这个问题, ...
- MySQL 配置文件my.cnf
转载: MySQL配置文件my.cnf 详解:#BEGIN CONFIG INFO#DESCR: 4GB RAM, 只使用InnoDB, ACID, 少量的连接, 队列负载大#TYPE: SYSTEM ...
- mysql学习3:mysql之my.cnf详解
mysql之my.cnf详解 本文转自:https://www.cnblogs.com/panwenbin-logs/p/8360703.html 以下是 my.cnf 配置文件参数解释: #*** ...
- mysql之my.cnf详解
以下是 my.cnf 配置文件参数解释: #*** client options 相关选项 ***# #以下选项会被MySQL客户端应用读取.注意只有MySQL附带的客户端应用程序保证可以读取这段内容 ...
- mysql的my.cnf参数详解
转载[Mysql] MySQL配置文件my.cnf的理解 一.缘由 最近要接手数据库的维护工作,公司首选MySQL.对于MySQL的理解,我认为很多性能优化工作.主从主主复制都是在调整参数,来适应不同 ...
随机推荐
- Shell流程控制语句while
while语法格式: while 判断条件 do 命令 done while语句流程控制图: 实例: [root@youxi1 ~]# vim a.sh #!/bin/bash i=0 while [ ...
- redis连接时报错:Could not connect to Redis at 127.0.0.1:6379: Connection refused
在/etc目录下找到redis.conf 将daemonize no 修改为 daemonize yes 再输入 redis-server /usr/local/etc/redis.conf redi ...
- [LeetCode] 686. Repeated String Match 重复字符串匹配
Given two strings A and B, find the minimum number of times A has to be repeated such that B is a su ...
- [编程开发]STB image读取学习
为了便于学习图像处理并研究图像算法, 俺写了一个适合初学者学习的小小框架. 麻雀虽小五脏俱全. 采用的加解码库:stb_image 官方:http://nothings.org/ stb_image. ...
- docker安装+docker-compose
1.docker安装 yum install -y yum-utils device-mapper-persistent-data yum-config-manager --add-repo http ...
- (转)Java中的String为什么是不可变的? -- String源码分析
背景:被问到很基础的知识点 string 自己答的很模糊 Java中的String为什么是不可变的? -- String源码分析 ps:最好去阅读原文 Java中的String为什么是不可变的 什 ...
- pychram 中 Terminal 中 git log 中文乱码解决办法
添加环境变量 set LESSCHARSET=utf-8 执行以下命令 git config --global core.quotepath false 不成功执行以下命令 git config -- ...
- werkzeug.routing.BuildError: Could not build url for endpoint 'index'. Did you mean 'user.index' instead?
werkzeug.routing.BuildError: Could not build url for endpoint 'index'. Did you mean 'user.index' ins ...
- DNS欺诈的三种简单方法总结
使用arpspoof.ettercap以及driftnet的简单组合. ①arpsppof+driftnet arpspoof -i eth0 -t 目标ip 目标网关 driftnet -i eth ...
- 小贴士--Python
1.查看python安装好的包版本信息:pip list 原贴,有空完善.http://yangzb.iteye.com/blog/1824761 2.Python文件快速执行. 加头文件快速执行Py ...