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)
    

  • 相关阅读:
    淘宝的样式初始化
    手机上 input submit ios和andirod样式不统一
    css实现div左侧突出一个带边框的三角形
    git不提交某个文件
    判断一个对象是否是数组
    操作对象的几种方法
    LWIP互联网资料汇总
    stm32 看门狗
    SPI协议再读
    每天要做的事
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13351433.html
Copyright © 2011-2022 走看看