I would like to tweak the value of innodb_flush_method to find out its performance impact on a database server. That variable is listed when I run the command SHOW VARIABLES
.
But I could not find it in the configuration file for the MySQL Server – my.cnf
.
I'm using XAMPP 1.6.3 with PHP (5.2.3) and MySQL (5.0.45). Its MySQL configuration file path is /xampp/mysql/bin/my.cnf
I searched the variable in the file, but no luck.
Where can I find it? Am I just overlooking?
UPDATE
I upgraded to XAMPP 1.8.1. Its configuration file path is /xampp/mysql/bin/my.ini
Still could not find that variable.
Best Answer
The only way for you to have it is to add it to your
my.cnf
.Before you can add this option, you must make sure the InnoDB storage engine is available.
Please run these commands
If you see this:
then you have
skip-innodb
in your my.cnf. You should comment it out and restart mysqlWhat you want to see is this:
Add that option to the
my.cnf
then run
Afterwards, you should be able to see it if you run
UPDATE 2013-04-12 14:25 EDT
I just realized you are running the Windows version of MySQL. What was I thinking ?
As point by @yercube's comment,
innodb_flush_method
is not available for Windows. Here is the MySQL Documentation on it:If you need this performance enhancement, migrate your data to the Linux version of MySQL.