How to set global innodb_buffer_pool_size?

前端 未结 5 707

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 22:03

    I faced that same problem:

    ERROR 1238 (HY000): Variable 'innodb_buffer_pool_size' is a read only variable

    Then I notice I wrote [mysqly] wrongly at the top, and that's why my.cnf was not working properly. I change it to [mysqld] and restart MySQL, then everything is working perfectly.

提交回复
热议问题