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)
    

  • 相关阅读:
    Makefile学习
    Tmux使用
    Linux进程管理学习资料
    Linux内存管理学习资料
    Python常用的软件包
    Docker 学习
    Intel处理器技术文档
    Firefly-RK3399笔记
    Linux Kernel API
    ARM 技术文档
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13351433.html
Copyright © 2011-2022 走看看