简体   繁体   中英

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 . However, when I do a

set `innodb_flush_method`= `O_DSYNC`;

it say innodb_flush_method is a read only variable. Anyone know how do I set it to O_DSYNC ?

You need to edit your my.cnf and put the value:

innodb_flush_method = O_DSYNC

Then restart your mysql server

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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