作家
登录

青铜到王者,快速提升你MySQL数据库的段位!

作者: 来源: 2017-09-01 09:02:12 阅读 我要评论

  • datadir    = /data/mysql 
  • open_files_limit    = 3072 
  • back_log = 103 
  • max_connections = 512 
  • max_connect_errors = 100000 
  • table_open_cache = 512 
  • external-locking = FALSE 
  • max_allowed_packet = 128M 
  • sort_buffer_size = 2M 
  • join_buffer_size = 2M 
  • thread_cache_size = 51 
  • query_cache_size = 32M 
  • tmp_table_size = 96M 
  • max_heap_table_size = 96M 
  • slow_query_log = 1 
  • slow_query_log_file = /data/mysql/slow.log 
  • log-error = /data/mysql/error.log 
  • long_query_time = 0.05 
  • server-id = 1323306 
  • log-bin = /data/mysql/mysql-bin 
  • sync_binlog = 1 
  • binlog_cache_size = 4M 
  • max_binlog_cache_size = 128M 
  • max_binlog_size = 1024M 
  • expire_logs_days = 7 
  • key_buffer_size = 32M 
  • read_buffer_size = 1M 
  • read_rnd_buffer_size = 16M 
  • bulk_insert_buffer_size = 64M 
  • character-set-server=utf8 
  • default-storage-engine=InnoDB 
  • binlog_format=row 
  • #gtid_mode=on 
  • #log_slave_updates=1 
  • #enforce_gtid_consistency=1 
  • interactive_timeout=100 
  • wait_timeout=100 
  • transaction_isolation = REPEATABLE-READ 
  • innodb_additional_mem_pool_size = 16M 
  • innodb_buffer_pool_size = 1434M 
  • innodb_data_file_path = ibdata1:1024M:autoextend 
  • innodb_flush_log_at_trx_commit = 1 
  • innodb_log_buffer_size = 16M 
  • innodb_log_file_size = 256M 
  • innodb_log_files_in_group = 2 
  • innodb_max_dirty_pages_pct = 50 
  • innodb_file_per_table = 1 
  • innodb_locks_unsafe_for_binlog = 0 
  • [mysqldump] 
  • quick 
  • max_allowed_packet = 32M  
  • MySQL 5.7 版本的参数文件:

    1. [client] 
    2. port    = 3306 
    3. socket    = /data/mysql/mysql.sock 
    4. [mysql] 
    5. prompt="\u@db \R:\m:\s [\d]> " 
    6. no-auto-rehash 
    7. [mysqld] 
    8. user    = mysql 
    9. port    = 3306 
    10. basedir    = /usr/local/mysql 
    11. datadir    = /data/mysql/ 
    12. socket    = /data/mysql/mysql.sock 
    13. character-

        推荐阅读

        混合云为什么很少落地?挑战有哪些?

      回想以前几年,混淆云在IT界异军崛起。据很多行业分析师的不雅点,混淆云意味着将组织软件驱动的私有云与公共云的机能、营业流程、主动化和计费功能相结合,以实如今公有云和私有云之间无>>>详细阅读


      本文标题:青铜到王者,快速提升你MySQL数据库的段位!

      地址:http://www.17bianji.com/lsqh/37072.html

    关键词: 探索发现

    乐购科技部分新闻及文章转载自互联网,供读者交流和学习,若有涉及作者版权等问题请及时与我们联系,以便更正、删除或按规定办理。感谢所有提供资讯的网站,欢迎各类媒体与乐购科技进行文章共享合作。

    网友点评
    自媒体专栏

    评论

    热度

    精彩导读
    栏目ID=71的表不存在(操作类型=0)