首页 > 数据库 >mysql 8.0.26 my.cnf 配置文件模板

mysql 8.0.26 my.cnf 配置文件模板

时间:2023-06-09 17:16:13浏览次数:43  
标签:8.0 26 log 配置文件 work innodb mysql 3306 home

##############

[mysqld]
basedir = /home/work/mysql_3306
datadir = /home/work/mysql_3306/data
tmpdir = /home/work/mysql_3306/tmp
pid_file = /home/work/mysql_3306/tmp/mysqld.pid
socket = /home/work/mysql_3306/tmp/mysql.sock
mysqlx_socket = /home/work/mysql_3306/tmp/mysqlx.sock
log_bin = /home/work/mysql_3306/log/bin
relay_log = /home/work/mysql_3306/log/relay
log_error = /home/work/mysql_3306/log/error.log
slow_query_log_file = /home/work/mysql_3306/log/slow.log
general_log_file = /home/work/mysql_3306/log/general.log
port = 3306
mysqlx = 0
mysqlx_port = 8308
user = work
report_host = 10.10.10.10
admin_address = 127.0.0.1
admin_port = 13308
server_id = 1002403308
back_log = 5000
binlog_format = row
binlog_ignore_db = dbscale_tmp
binlog_transaction_dependency_tracking = WRITESET
character_set_server = utf8
default_authentication_plugin = mysql_native_password
enforce_gtid_consistency = on
expire_logs_days = 15
federated = 1
gtid_mode = on
init_connect = SET NAMES utf8
innodb_buffer_pool_instances = 10
innodb_buffer_pool_size = 2G
innodb_change_buffering = all
innodb_doublewrite = 1
innodb_file_per_table = 1
innodb_flush_log_at_trx_commit = 1
innodb_flush_method = O_DIRECT
innodb_io_capacity = 8000
innodb_io_capacity_max = 10000
innodb_log_buffer_size = 128M
innodb_log_files_in_group = 4
innodb_log_file_size = 1G
innodb_monitor_enable = all
innodb_print_all_deadlocks = on
innodb_read_io_threads = 4
innodb_temp_data_file_path = ibtmp1:12M:autoextend:max:81920M
innodb_thread_concurrency = 0
innodb_write_io_threads = 4
interactive_timeout = 31536000
log_bin_trust_function_creators = 1
log_slave_updates = 1
log_timestamps = SYSTEM
long_query_time = 10
lower_case_table_names = 1
master_info_repository = TABLE
max_allowed_packet = 16M
max_connections = 20480
max_prepared_stmt_count = 1048576
net_read_timeout = 10000
net_write_timeout = 10000
open_files_limit = 800000
performance-schema-consumer-events_stages_current = on
performance-schema-consumer-events_stages_history = on
performance-schema-consumer-events_statements_current = on
performance-schema-consumer-events_statements_history = on
performance-schema-consumer-events_transactions_current = on
performance-schema-consumer-events_transactions_history = on
performance-schema-consumer-events_waits_current = on
performance-schema-consumer-events_waits_history = on
performance-schema-instrument = %=ON
plugin-load = rpl_semi_sync_master=semisync_master.so;rpl_semi_sync_slave=semisync_slave.so
relay_log_info_repository = TABLE
skip_external_locking = 1
skip_name_resolve = 1
skip_slave_start = 1
slave_parallel_type = LOGICAL_CLOCK
slave_parallel_workers = 16
slave_pending_jobs_size_max = 2147483648
slave_preserve_commit_order = 1
slave_rows_search_algorithms = INDEX_SCAN,HASH_SCAN
slow_query_log = on
sort_buffer_size = 2M
ssl = off
sync_binlog = 1
table_definition_cache = 5000
table_open_cache = 5000
thread_cache_size = 3000
transaction_isolation = READ-COMMITTED
transaction_write_set_extraction = XXHASH64
wait_timeout = 31536000

 

 

 

 

 

 

 

 

 

 

 

 

 

 

########################

标签:8.0,26,log,配置文件,work,innodb,mysql,3306,home
From: https://www.cnblogs.com/igoodful/p/17469725.html

相关文章

  • H264/H265编码
    1、通常在处理音视频数据时,我们如何选择解码器?    通常我们不是根据NALU裸流数据中的信息来选择解码器,而是根据媒体封装层的信息来确定解码器。媒体封装层是表示媒体数据是什么封装格式的,比如MP4、FLV。在这层信息里,通常会携带码流编码格式的信息。拿MP4来说,我们可以......
  • 关于EasyPlayer.js播放器检测m3u8视频是否为H.265的优化
    EasyPlayer是可支持H.264/H.265视频播放的流媒体播放器,性能稳定、播放流畅,可支持的视频流格式有RTSP、RTMP、HLS、FLV、WebRTC等,具备较高的可用性。EasyPlayer还拥有Windows、Android、iOS版本,其灵活的视频能力,极大满足了用户的多样化场景需求。在播放器EasyPlayer.js5.0.7版本......
  • 关于EasyPlayer.js播放器检测m3u8视频是否为H.265的优化
    EasyPlayer是可支持H.264/H.265视频播放的流媒体播放器,性能稳定、播放流畅,可支持的视频流格式有RTSP、RTMP、HLS、FLV、WebRTC等,具备较高的可用性。EasyPlayer还拥有Windows、Android、iOS版本,其灵活的视频能力,极大满足了用户的多样化场景需求。在播放器EasyPlayer.js5.0.7版本中,......
  • binlog_parse_clickhouse.py(ETL抽数据工具)将MySQL8.0迁移至ClickHouse
    binlog_parse_clickhouse.py(ETL抽数据工具)将MySQL8.0迁移至ClickHouse原理:将解析binlog和执行SQL语句两个过程由两个线程来执行。其中,解析binlog的线程每次解析完一个事件后通过队列将SQL语句传给SQL执行线程,SQL执行线程从队列中取出SQL语句并按顺序依次执行,这样就保......
  • 01-mybatis-快速入门-代理开发、配置文件
    文章目录MybatisMybatis入门案例1、创建User表,添加数据2、创建模块,搭建框架2.1创建模块注意:完善项目目录2.2导入坐标2.3编写MyBatis核心配置文件2.4编写sql映射文件2.5编码3、解决SQL映射文件的警告提示Mapper代理开发1、定义同名接口2、设置namespace并修改核心配置mappe......
  • 02-MyBatis-CRUD-配置文件、参数封装、mybatisX插件、动态sql, 简单的用注解开发
    文章目录MybatisCRUD练习1,配置文件实现CRUD1.1环境准备Debug01:别名mybatisx报错1.2查询所有数据1.2.1编写接口方法1.2.2编写SQL语句1.2.3编写测试方法1.2.4起别名解决上述问题1.2.5使用resultMap解决上述问题1.2.6小结1.3查询详情1.3.1编写接口方法1.3.2编写SQL语句......
  • 各类配置文件(DNS, Firefox,Edge)
    DNS配置腾讯DNS:119.29.29.292402:4e00:: 2402:4e00:1::阿里云:223.5.5.5223.6.6.62400:3200::12400:3200:baba::1黑龙江联通:202.97.224.68202.97.224.69CiscoDNS208.67.222.222208.67.220.2202620:119:35::352620:119:53::53浏览器配置Firefoxabout:confi......
  • stm32+sx1268 LORA通信
    前言:由于亿佰特的lora代码不好移植,基于stm8且是IAR编译器,对于代码的处理很大困难。所以我通过搜索资料发现了泽耀科技的同配置的lora模块写了关于stm32的代码。在实验中,我将买回来的lora模块的引脚按照手册上的需要引出并打板焊接(SPI通信的lora模块),通过stm32连接lora,lora的天线......
  • 5.26总结
    今天学习了数据库这门课程,因为29号就要期末考试了,大致是这些内容。八、基本SELECT语句SELECT*|{[DISTINCT]column|expression[alias],…}FROMtable;•SELECT标识选择哪些列。•FROM标识从哪个表中选择。SELECT*FROMdepartments;选择特定的列SELECTdepartment_id,lo......
  • mysql8.0二进制安装遇到的问题
    公司新项目需要用CentOS8.0以上的系统和mysql8.0;于是在虚拟机上开始操作测试;一实验环境1、系统版本:CentOS8.32、数据库版本:mysql-8.0.233、数据库下载链接:https://dev.mysql.com/downloads/mysql/二、遇到的问题这里不讲安装过程,之前博客有写只不过用的是mysql5.7,安装过......