zoukankan      html  css  js  c++  java
  • MySQL之my.cnf配置

    ####################配置文件开始###################
    
     # For advice on how to change settings please see
    
     # http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html
    
     # *** DO NOT EDIT THIS FILE. It's a template which will be copied to the
    
     # *** default location during install, and will be replaced if you
    
     # *** upgrade to a newer version of MySQL.
    
     [client]
    
     default-character-set=utf8
    
     
    
     [mysqld]
    
    #skip-grant-tables
    
     port=3306
    
     user = root
    
     basedir  ="/usr/local/mysql/mysql5.6.24/"
    
     datadir  ="/usr/local/mysql/mysql5.6.24/data/"
    
     tmpdir   ="/usr/local/mysql/mysql5.6.24/data/"
    
     socket   ="/usr/local/mysql/mysql5.6.24/data/mysql.sock"
    
     log-error="/usr/local/mysql/mysql5.6.24/data/mysql_error.log"
    
     
    
     #server_id = 2
    
     #skip-locking
    
     
    
     max_connections=100
    
     table_open_cache=256
    
     query_cache_size=1M
    
     
    
     tmp_table_size=32M
    
     thread_cache_size=8
    
     
    
     innodb_data_home_dir="/usr/local/mysql/mysql5.6.24/data/"
    
     innodb_flush_log_at_trx_commit =1
    
     innodb_log_buffer_size=128M
    
     innodb_buffer_pool_size=128M
    
     innodb_log_file_size=10M
    
     innodb_thread_concurrency=16
    
     innodb-autoextend-increment=1000
    
     join_buffer_size = 128M
    
     sort_buffer_size = 32M
    
     read_rnd_buffer_size = 32M
    
     max_allowed_packet = 32M
    
     explicit_defaults_for_timestamp=true
    
     sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
    
     #sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
    
    # innodb_force_recovery= 1
    
    
    
    ####################配置文件结束###################
    

      

  • 相关阅读:
    <<信息学奥赛一本通>> 昆虫养殖 题解
    C++ primer 第七章 练习7.35 类作用域练习
    C++ primer 第六章 练习6.56 函数指针练习
    P1145 约瑟夫
    C++ 查看auto delctype 后变量的类型。(小技巧)
    Educational Codeforces Round 24 题解
    HDU 5279 分治NTT 图的计数
    BZOJ 3473
    BZOJ 3514 LCT+主席树
    看无可看 分治FFT+特征值方程
  • 原文地址:https://www.cnblogs.com/hapday/p/6395936.html
Copyright © 2011-2022 走看看