zoukankan      html  css  js  c++  java
  • mysql innodb_log_buffer_size和 innodb_buffer_pool_size设置

    mysql>  show variables like '%binlog_cache_size%';
    +-----------------------+----------------------+
    | Variable_name         | Value                |
    +-----------------------+----------------------+
    | binlog_cache_size     | 131072               |  
    | max_binlog_cache_size | 18446744073709547520 |
    +-----------------------+----------------------+
    
    
    binlog_cache_size  128K:
    
    
    mysql> show variables like '%log_buffer_size%';
    +------------------------+---------+
    | Variable_name          | Value   |
    +------------------------+---------+
    | innodb_log_buffer_size | 8388608 |  
    +------------------------+---------+
    1 row in set (0.00 sec)
    
    innodb_log_buffer_size  =8M
    
    mysql> show variables like '%buffer_pool_size%';
    +-------------------------+-----------+
    | Variable_name           | Value     |
    +-------------------------+-----------+
    | innodb_buffer_pool_size | 134217728 |
    +-------------------------+-----------+
    1 row in set (0.00 sec)
    
    调整这两个参数大小:
    
    innodb_log_buffer_size=8M 用默认值就行
    
    innodb_buffer_pool_size=1280M
    
    mysql> show variables like '%innodb_log_buffer_size%';
    +------------------------+----------+
    | Variable_name          | Value    |
    +------------------------+----------+
    | innodb_log_buffer_size | 83886080 |
    +------------------------+----------+
    1 row in set (0.00 sec)
    
    mysql> show variables like '%innodb_buffer_pool_size%';
    +-------------------------+------------+
    | Variable_name           | Value      |
    +-------------------------+------------+
    | innodb_buffer_pool_size | 1342177280 |
    +-------------------------+------------+
    1 row in set (0.00 sec)
    

  • 相关阅读:
    spring aop 之链式调用
    Java中的java.lang.Class API 详解
    Java 内省(Introspector)和 BeanUtils
    Small Spring系列一:BeanFactory(一)
    (C#) 多线程访问探讨,如果保证线程安全?
    (C#) 多线程访问int, bool 等值类型变量
    (WCF) 利用WCF实现两个Process之间的通讯。
    (PowerShell) 重命名文件
    JavaScript : Array assignment creates reference not copy
    (C#) 表达式树
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13351433.html
Copyright © 2011-2022 走看看