加入收藏 | 设为首页 | 会员中心 | 我要投稿 PHP编程网 - 黄冈站长网 (http://www.0713zz.com/)- 数据应用、建站、人体识别、智能机器人、语音技术!
当前位置: 首页 > 站长学院 > MySql教程 > 正文

my-innodb-heavy-4G.cnf配置文件解说

发布时间:2022-06-30 20:29:42 所属栏目:MySql教程 来源:互联网
导读:[client] port = 3306 #指定mysql启动端口为3306 socket = /application/mysql-5.5.32/tmp/mysql.sock ##指定socket 路径 [mysqld] port = 3306 socket = /application/mysql-5.5.32/tmp/mysql.sock back_log = 50 max_connections = 100 max_connect_erro
  [client]                   
  port  = 3306    #指定mysql启动端口为3306
  socket  = /application/mysql-5.5.32/tmp/mysql.sock  ##指定socket 路径
  [mysqld]
  port  = 3306               
  socket  = /application/mysql-5.5.32/tmp/mysql.sock
  back_log = 50              
  max_connections = 100      
  max_connect_errors = 10    
  table_open_cache = 2048    
  max_allowed_packet = 16M   
  binlog_cache_size = 1M     
  max_heap_table_size = 64M  
  read_buffer_size = 2M      
  read_rnd_buffer_size = 16M
  sort_buffer_size = 8M      
  join_buffer_size = 8M      
  thread_cache_size = 8      
  thread_concurrency = 8     
  query_cache_size = 64M     
  query_cache_limit = 2M     
  ft_min_word_len = 4        
  default-storage-engine = MYISAM        
  thread_stack = 192K                    
  transaction_isolation = REPEATABLE-READ
  tmp_table_size = 64M                   
  log-bin=mysql-bin                      
  binlog_format=mixed                    
  slow_query_log                         
  long_query_time = 2                    
  server-id = 1                          
  key_buffer_size = 32M                  
  bulk_insert_buffer_size = 64M          
  myisam_sort_buffer_size = 128M         
  myisam_max_sort_file_size = 10G        
  myisam_repair_threads = 1              
  myisam_recover                         
  innodb_additional_mem_pool_size = 16M  
  innodb_buffer_pool_size = 2G           
  innodb_data_file_path = ibdata1:10M:autoextend  
  innodb_write_io_threads = 8        
  innodb_read_io_threads = 8             
  innodb_thread_concurrency = 16         
  innodb_flush_log_at_trx_commit = 1     
  innodb_log_buffer_size = 8M            
  innodb_log_file_size = 256M            
  innodb_log_files_in_group = 3          
  innodb_max_dirty_pages_pct = 90        
  innodb_lock_wait_timeout = 120         
  [mysqldump]
  quick
  max_allowed_packet = 16M  
  [mysql]
  no-auto-rehash
  [myisamchk]
  key_buffer_size = 512M
  sort_buffer_size = 512M
  read_buffer = 8M
  write_buffer = 8M
  [mysqlhotcopy]
  interactive-timeout
  [mysqld_safe]
  open-files-limit = 8192

(编辑:PHP编程网 - 黄冈站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    热点阅读