upupw mysql 1067_UPUPW套件中,MySQL5.7配置优化参考
1.轻量配置
[client]
port=3306
default-character-set=utf8mb4
[mysql]
default-character-set=utf8mb4
[mysqld]
port=3306
server_id=1
basedir="{up-path}Modules/MySQL/"
datadir="{up-path}Database/data_mysql/"
tmpdir="{up-path}Temp/mysql/"
log-error="{up-path}Logs/mysql.log"
slow-query-log-file="{up-path}Logs/mysql_slow_query.log"
secure-file-priv="{up-path}Modules/MySQL/uploads"
character-set-client-handshake=FALSE
character-set-server=utf8mb4
collation-server=utf8mb4_unicode_ci
init_connect='SET NAMES utf8mb4'
default-storage-engine=MYISAM
sql-mode="NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
explicit_defaults_for_timestamp=true
interactive_timeout=120
wait_timeout=120
log_error_verbosity=1
slow_query_log=0
long_query_time=2
local-infile=0
skip-external-locking
skip-ssl
#skip-name-resolve
#skip-networking
#enable-named-pipe
#bind-address=127.0.0.1
#log-bin=mysql-bin
#binlog_format=mixed
max_connections=100
query_cache_size=0
performance_schema_max_table_instances=600
table_definition_cache=400
key_buffer_size=32M
sort_buffer_size=256kb
read_buffer_size=512kb
join_buffer_size=1M
read_rnd_buffer_size=2M
max_allowed_packet=16M
table_open_cache=128
tmp_table_size=32M
max_heap_table_size=32M
thread_cache_size=8
myisam_max_sort_file_size=64G
myisam_sort_buffer_size=8M
innodb_buffer_pool_size=64M
innodb_log_file_size=256M
innodb_log_buffer_size=4M
innodb_file_per_table=1
innodb_flush_log_at_trx_commit=1
innodb_flush_method=normal
innodb_thread_concurrency=0
innodb_lock_wait_timeout=120
[mysqldump]
quick
max_allowed_packet=16M
[mysql]
no-auto-rehash
[myisamchk]
key_buffer_size=10M
sort_buffer_size=10M
read_buffer_size=1M
write_buffer_size=1M
tmpdir="{up-path}Temp/mysql/"
[mysqlhotcopy]
interactive-timeout
[mysqld_safe]
open-files-limit=8192
2.均衡配置
[client]
port=3306
default-character-set=utf8mb4
[mysql]
default-character-set=utf8mb4
[mysqld]
port=3306
server_id=1
basedir="{up-path}Modules/MySQL/"
datadir="{up-path}Database/data_mysql/"
tmpdir="{up-path}Temp/mysql/"
log-error="{up-path}Logs/mysql.log"
slow-query-log-file="{up-path}Logs/mysql_slow_query.log"
secure-file-priv="{up-path}Modules/MySQL/uploads"
character-set-client-handshake=FALSE
character-set-server=utf8mb4
collation-server=utf8mb4_unicode_ci
init_connect='SET NAMES utf8mb4'
default-storage-engine=MYISAM
sql-mode="NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
explicit_defaults_for_timestamp=true
interactive_timeout=120
wait_timeout=120
log_error_verbosity=1
slow_query_log=0
long_query_time=2
local-infile=0
skip-external-locking
skip-ssl
#skip-name-resolve
#skip-networking
#enable-named-pipe
#bind-address=127.0.0.1
#log-bin=mysql-bin
#binlog_format=mixed
max_connections=300
query_cache_size=0
performance_schema_max_table_instances=600
table_definition_cache=400
key_buffer_size=64M
sort_buffer_size=512kb
read_buffer_size=1M
join_buffer_size=2M
read_rnd_buffer_size=4M
max_allowed_packet=16M
table_open_cache=256
tmp_table_size=64M
max_heap_table_size=64M
thread_cache_size=16
myisam_max_sort_file_size=64G
myisam_sort_buffer_size=32M
innodb_buffer_pool_size=128M
innodb_log_file_size=256M
innodb_log_buffer_size=8M
innodb_file_per_table=1
innodb_flush_log_at_trx_commit=1
innodb_flush_method=normal
innodb_thread_concurrency=0
innodb_lock_wait_timeout=120
[mysqldump]
quick
max_allowed_packet=16M
[mysql]
no-auto-rehash
[myisamchk]
key_buffer_size=20M
sort_buffer_size=20M
read_buffer_size=2M
write_buffer_size=2M
tmpdir="{up-path}Temp/mysql/"
[mysqlhotcopy]
interactive-timeout
[mysqld_safe]
open-files-limit=8192
3.高端配置
[client]
port=3306
default-character-set=utf8mb4
[mysql]
default-character-set=utf8mb4
[mysqld]
port=3306
server_id=1
basedir="{up-path}Modules/MySQL/"
datadir="{up-path}Database/data_mysql/"
tmpdir="{up-path}Temp/mysql/"
log-error="{up-path}Logs/mysql.log"
slow-query-log-file="{up-path}Logs/mysql_slow_query.log"
secure-file-priv="{up-path}Modules/MySQL/uploads"
character-set-client-handshake=FALSE
character-set-server=utf8mb4
collation-server=utf8mb4_unicode_ci
init_connect='SET NAMES utf8mb4'
default-storage-engine=MYISAM
sql-mode="NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
explicit_defaults_for_timestamp=true
interactive_timeout=120
wait_timeout=120
log_error_verbosity=1
slow_query_log=0
long_query_time=2
local-infile=0
skip-external-locking
skip-ssl
#skip-name-resolve
#skip-networking
#enable-named-pipe
#bind-address=127.0.0.1
#log-bin=mysql-bin
#binlog_format=mixed
max_connections=600
query_cache_size=0
performance_schema_max_table_instances=600
table_definition_cache=400
key_buffer_size=256M
sort_buffer_size=1M
read_buffer_size=2M
join_buffer_size=4M
read_rnd_buffer_size=4M
max_allowed_packet=16M
table_open_cache=512
tmp_table_size=128M
max_heap_table_size=128M
thread_cache_size=32
myisam_max_sort_file_size=64G
myisam_sort_buffer_size=64M
innodb_buffer_pool_size=256M
innodb_log_file_size=256M
innodb_log_buffer_size=16M
innodb_file_per_table=1
innodb_flush_log_at_trx_commit=1
innodb_flush_method=normal
innodb_thread_concurrency=0
innodb_lock_wait_timeout=120
[mysqldump]
quick
max_allowed_packet=16M
[mysql]
no-auto-rehash
[myisamchk]
key_buffer_size=40M
sort_buffer_size=40M
read_buffer_size=4M
write_buffer_size=4M
tmpdir="{up-path}Temp/mysql/"
[mysqlhotcopy]
interactive-timeout
[mysqld_safe]
open-files-limit=8192
4.极限配置
[client]
port=3306
default-character-set=utf8mb4
[mysql]
default-character-set=utf8mb4
[mysqld]
port=3306
server_id=1
basedir="{up-path}Modules/MySQL/"
datadir="{up-path}Database/data_mysql/"
tmpdir="{up-path}Temp/mysql/"
log-error="{up-path}Logs/mysql.log"
slow-query-log-file="{up-path}Logs/mysql_slow_query.log"
secure-file-priv="{up-path}Modules/MySQL/uploads"
character-set-client-handshake=FALSE
character-set-server=utf8mb4
collation-server=utf8mb4_unicode_ci
init_connect='SET NAMES utf8mb4'
default-storage-engine=MYISAM
sql-mode="NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
explicit_defaults_for_timestamp=true
interactive_timeout=120
wait_timeout=120
log_error_verbosity=1
slow_query_log=0
long_query_time=2
local-infile=0
skip-external-locking
skip-ssl
#skip-name-resolve
#skip-networking
#enable-named-pipe
#bind-address=127.0.0.1
#log-bin=mysql-bin
#binlog_format=mixed
max_connections=1000
query_cache_size=0
performance_schema_max_table_instances=600
table_definition_cache=400
key_buffer_size=512M
sort_buffer_size=1M
read_buffer_size=4M
join_buffer_size=8M
read_rnd_buffer_size=8M
max_allowed_packet=16M
table_open_cache=1024
tmp_table_size=256M
max_heap_table_size=256M
thread_cache_size=64
myisam_max_sort_file_size=64G
myisam_sort_buffer_size=128M
innodb_buffer_pool_size=512M
innodb_log_file_size=256M
innodb_log_buffer_size=16M
innodb_file_per_table=1
innodb_flush_log_at_trx_commit=1
innodb_flush_method=normal
innodb_thread_concurrency=0
innodb_lock_wait_timeout=120
[mysqldump]
quick
max_allowed_packet=16M
[mysql]
no-auto-rehash
[myisamchk]
key_buffer_size=80M
sort_buffer_size=80M
read_buffer_size=8M
write_buffer_size=8M
tmpdir="{up-path}Temp/mysql/"
[mysqlhotcopy]
interactive-timeout
[mysqld_safe]
open-files-limit=8192
upupw mysql 1067_UPUPW套件中,MySQL5.7配置优化参考相关推荐
- Nginx配置优化参考
Nginx配置优化参考 编辑词 ...
- LRU 算法在 MySQL 和 Redis 中的实现与优化
本文转载于我的个人公众号"阿东编程之路" 一. 什么是LRU算法 LRU 算法全称:Least Recently Used,故名思义就是最近最少被使用的.一般会用 LRU 算法来实 ...
- hive mysql 远程_ubuntu中为hive配置远程MYSQL database
一.安装mysql $ sudo apt-get install mysql-server 启动守护进程 $ sudo service mysql start 二.配置mysql服务与连接器 1.安装 ...
- ubuntu mysql master slave_Ubuntu下MySQL5.5 配置主从(Master Slave)同步
折腾了将近3个小时!终于把mysql的主从同步给配置成功了! 网上的不少例子都行不通(也许是版本问题). 官网看了一下原版的tutorial,还是比较懵逼..... 最后,通过官网的教程和自己的摸索, ...
- Mysql性能优化、Mysql参数优化、Mysql配置优化
码字不易,转载请附原链,搬砖繁忙回复不及时见谅,技术交流请加QQ群:909211071 Mysql性能优化.Mysql参数优化.Mysql配置优化.Mysql参数优化对于不同的网站,及在线量等,以及机 ...
- mysql ssd_MySQL数据库场景中NVMe SSD的优化
原标题:MySQL数据库场景中NVMe SSD的优化 在DB-Engines Ranking的榜单上,虽然Oracle.MySQL和SQL Server前三的地位仍是不可撼动的.作为一家专注于NVMe ...
- mysql pushdown_MySQL 5.6 中一个重要的优化——Index Condition Pushdown,究竟push down了什么...
1 问题描述 一条SQL,在数据库中是如何执行的呢?相信很多人都会对这个问题比较感兴趣.当然,要完整描述一条SQL在数据库中的生命周期,这是一个非常巨大的问题,涵盖了SQL的词法解析.语 ...
- nginx部署、配置优化
nginx安装 安装依赖 yum -y install gcc gcc-c++ make unzip pcre pcre-devel zlib zlib-devel libxml2 libxml2-d ...
- 华三无线控制器的配置优化
数据通信 - 建设篇 - 无线 第三章 华三无线控制器的配置优化 数据通信 - 建设篇 - 无线 系列文章回顾 华三无线控制器的配置优化 背景介绍 实施步骤 用户接入优化.无线漫游优化.用户并发数优化 ...
最新文章
- 10.25 es问题
- zcmu1209(dfs)
- 计算机视觉与深度学习 | K-means聚类算法在计算机视觉中的应用之图像分割
- 进程间通信:管道和命名管道(FIFO)
- Object-C,NSArraySortTest,数组排序3种方式
- C语言-字符串处理函数strcmp
- 行内块元素(HTML、CSS)
- 基于嵌入式linux的流媒体传输系统
- 526个儿童游戏APP应用音效游戏声音集合音效素材 Kids Game Sound Effects
- 教育云助武汉大学实现校园信息化
- java根据卡号判断银行卡的基本信息
- unity3d 不规则外发光描边_PS发光字体教程
- 微信接龙,查人,查谁没有接龙,工具
- php array pluck,laravel辅助函数-数组
- 支付系统设计包含:账户,对账,风控...!史上最全的!--转
- 教室网站php代码下载,资源教室_资源教室系统
- 数据库系统概念 - 数据模型,关系模型,关系,候选码,主码,外码
- 聚焦AWE2020 看小家电行业“风往哪吹”
- 【微信网页授权】SpringBoot+uniapp实现网页授权获取用户基本信息
- C++弹幕游戏自制分享