​资料里没有my.con文件

正在回答

登陆购买课程后可参与讨论,去登陆

1回答

[client]

port        = 3306

socket      = /tmp/mysql.sock


[mysqld]

port    = 3306

socket  = /tmp/mysql.sock


##  dir set

datadir           = /data/mysql/data

innodb_data_home_dir   = /data/mysql/data

innodb_log_group_home_dir = /data/mysql/data

log-bin           = /data/mysql/binlog/mysql-bin

log_bin_index             = /data/mysql/binlog/mysql-bin.index  

relay-log         = /data/mysql/binlog/mysql-relay-bin

tmpdir            = /data/mysql/tmpdir

slow_query_log_file   = /data/mysql/log/mysql-slow.log

general_log = off

general_log_file   = /data/mysql/log/mysql-general.log

log-error         = /data/mysql/log/mysql.err


## slave and binlog

server-id = 12161           

skip-slave-start = 0    

read_only = 0         

binlog_format = row             

log-slave-updates = 1

master_info_repository = table

relay_log_info_repository = table

relay_log_purge = 1

relay_log_recovery = 1

sync_binlog = 100           


binlog_cache_size = 1M

expire_logs_days = 30

log_bin_trust_function_creators = 1         

slave_net_timeout=60                

#binlog_error_action="IGNORE_ERROR"     


innodb_autoinc_lock_mode=1          


## 

back_log = 200

bulk_insert_buffer_size = 8M            

#character-set-server = utf8

lower_case_table_names = 1           


## 基线

local-infile = off

skip-networking = off

skip-name-resolve = on 


## connect

max_allowed_packet = 32M

max_connect_errors = 1000

max_connections = 3000

wait_timeout = 3600             

interactive_timeout = 3600         


table_open_cache = 4096

thread_cache_size =  64

thread_stack = 192K

transaction-isolation = REPEATABLE-READ     # 

pid-file = mysql.pid


## slow

slow_query_log = 1              

long_query_time = 1

log-slow-admin-statements

log_queries_not_using_indexes = 0

slow_launch_time = 1

read_buffer_size = 4M               

read_rnd_buffer_size = 8M           

sort_buffer_size = 8M

join_buffer_size = 32M

tmp_table_size = 128M

max_heap_table_size = 128M


default-storage-engine = innodb

explicit_defaults_for_timestamp = on           


## innodb

innodb_buffer_pool_size = 1G                    

innodb_max_dirty_pages_pct = 80         

innodb_thread_concurrency = 8           

innodb_buffer_pool_instances = 1        

innodb_flush_log_at_trx_commit = 2      

innodb_read_io_threads = 8          

innodb_write_io_threads = 4         

innodb_io_capacity = 1000

innodb_io_capacity_max = 2000

innodb_lru_scan_depth = 1024

innodb_use_native_aio = 1

innodb_flush_neighbors = 1

innodb_buffer_pool_load_at_startup = 1

innodb_buffer_pool_dump_at_shutdown = 1


innodb_data_file_path=ibdata:1G:autoextend

innodb_log_files_in_group = 3

innodb_log_file_size = 2G

innodb_file_per_table = 1 


innodb_flush_method = O_DIRECT

innodb_strict_mode = 1

innodb_lock_wait_timeout = 30

innodb_log_buffer_size = 16M

innodb_adaptive_flushing = 1

innodb_change_buffering = all

innodb_purge_threads = 4            

innodb_purge_batch_size = 300           


innodb_old_blocks_time = 1

innodb_fast_shutdown = 0

performance_schema = 1

innodb_print_all_deadlocks = 1

innodb_sort_buffer_size = 4M 


innodb_page_size = 16k

gtid_mode=on

enforce_gtid_consistency=on     


table_open_cache_instances=16

binlog_rows_query_log_events=1      


slave_parallel_workers = 0      

#slave_parallel_type=LOGICAL_CLOCK      

#binlog_group_commit_sync_delay = 500000  

#binlog_group_commit_sync_no_delay_count =12  


## pasword

default_password_lifetime=0          



[mysqldump]

quick

max_allowed_packet = 32M


[mysql]

no-auto-rehash

prompt=\p@\d>\_


[mysqld_safe]

open-files-limit = 28192


[mysqlhotcopy]

interactive-timeout


  • 有共享文档吗?资料在哪里,没有找到

    2024-06-23 14:11:50
  • 有些资料和文件在QQ群里,在问答区找下,有进QQ群的方式

    2024-06-23 23:20:39
问题已解决,确定采纳
还有疑问,暂不采纳

恭喜解决一个难题,获得1积分~

来为老师/同学的回答评分吧

0 星
DBA数据库工程师
  • 参与学习       219    人
  • 解答问题       62    个

本课程主要讲解MySQL DBA需要掌握的技术,包括MySQL基础、日志文件、讲师的实战经验分享、常用工具、高可用、优化、DBA 实战项目等内容。

了解课程
请稍等 ...
意见反馈 帮助中心 APP下载
官方微信

在线咨询

领取优惠

免费试听

领取大纲

扫描二维码,添加
你的专属老师