my.ini LOCATION ON WINDOWS MYSQL 5.6 MSI (USING DEVICE DEVICE)
Open a Windows shell and type: echo %PROGRAMDATA% . On Windows Vista, this results in: C:\ProgramData .
According to http://dev.mysql.com/doc/refman/5.6/en/option-files.html , the first MySQL location will look like %PROGRAMDATA%\MySQL\MySQL Server 5.6\my.ini . In your Windows shell, if you do ls "%PROGRAMDATA%\MySQL\MySQL Server 5.6\my.ini" , you will see that there is a file.
Unlike most offers that you will find on Stackoverflow and on the Internet, placing a file in C:\Program Files\MySQL\MySQL Server 5.6\my.ini DOES NOT WORK. Also there will be no C:\Program Files (x86)\MySQL\MySQL Server 5.1 . Reason for quoting the MySQL link posted above:
On Windows, MySQL programs read startup parameters from the following files in the specified order (top elements are used first).
The installer 5.6 MSI makes the creation of my.ini at the highest priority location, that is, no other file will be found / used except the one that was created by the installer.
The decision made above will not work on 5.6 MSI-based installations.
amateur barista Dec 01 '13 at 10:46
source share