How to set global innodb_buffer_pool_size?

前端 未结 5 721

How to set the global innodb_buffer_pool_size mySQL variable? When I set it to system display I get this error:

ERROR 1238 (HY000):         


        
5条回答
  •  孤独总比滥情好
    2021-01-01 21:47

    innodb_buffer_pool_size

    You should set this variable value under [mysqld] section as :

    innodb_buffer_pool_size=2G
    

    and restart MySQL service to have effect.

    InnoDB buffer pool caches both data and index pages. You can set this value to 70-80% of available memory for Innodb-only installations

提交回复
热议问题