简体   繁体   English

mySQL innodb_flush_method是只读变量

[英]mySQL innodb_flush_method is a read only variable

I am using mySQL 5.6, I did a show variables in my database and I found out that my innodb_flush_method is blank and I want to set it to O_DSYNC . 我正在使用mySQL 5.6,在数据库中执行了show variables ,发现innodb_flush_method为空,我想将其设置为O_DSYNC。 However, when I do a 但是,当我做一个

set `innodb_flush_method`= `O_DSYNC`;

it say innodb_flush_method is a read only variable. 它说innodb_flush_method是一个只读变量。 Anyone know how do I set it to O_DSYNC ? 有人知道如何将其设置为O_DSYNC吗?

You need to edit your my.cnf and put the value: 您需要编辑my.cnf并输入值:

innodb_flush_method = O_DSYNC

Then restart your mysql server 然后重启你的mysql服务器

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM