zoukankan      html  css  js  c++  java
  • mysql 参数模板

    [mysqld]
    user = mysql
    basedir = /usr/local/mysql
    datadir = /usr/local/mysql/data
    port = 3306
    socket = /usr/local/mysql/data/mysql.sock
    #--skip-locking
    back_log = 500
    key_buffer_size = 256M
    max_allowed_packet = 64M
    table_open_cache = 512
    sort_buffer_size = 8M
    read_buffer_size = 4M
    join_buffer_size = 8M
    #query_cache_size = 512M
    max_connections = 1000
    max_connect_errors = 10000000
    #wait_timeout = 60
    interactive_timeout = 1000
    tmp_table_size = 256M
    thread_concurrency = 16
    default_storage_engine=InnoDB
    skip_external_locking
    long_query_time = 1
    log-bin=/usr/local/mysql/data
    max_binlog_cache_size = 512M
    max_binlog_size=1024M
    log_slow_queries = ON
    log_slow_queries = /var/log/slow-queries.log
    long_query_time=5
    log_queries_not_using_indexes
    log-slow-admin-statements
    expire_logs_days = 30
    ##  InnoDB options
    innodb_additional_mem_pool_size = 16M
    innodb_buffer_pool_size = 8G
    #innodb_buffer_pool_instances = 4
    #innodb_file_per_table = 1
    #innodb_file_io_threads = 8
    #innodb_force_recovery=1
    #innodb_thread_concurrency = 8
    #innodb_flush_log_at_trx_commit = 2
    innodb_log_buffer_size = 1024M
    innodb_log_file_size = 512M
    #innodb_log_files_in_group = 3
    #innodb_max_dirty_pages_pct = 90
    innodb_flush_method=O_DSYNC
    

  • 相关阅读:
    python023
    python019
    python018
    python017
    python016
    python013
    python012
    数据库,盘它!!!!
    网络编程
    面向对象简述
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13351628.html
Copyright © 2011-2022 走看看