Since the release of my MySQL course on Performance Tuning and Optimization, I have received quite a few questions on MySQL. The top most questions which I have received is how to find my.ini or my.cnf file on Windows Platform. This is a fantastic question and I can understand the frustration of new users with MySQL about this one. There is plenty of information available online about this option, however, it is very difficult to identify which will work with your version of MySQL and your platform. In this blog post, I will show you how you can quickly figure out which my.ini file is powering the initial configuration of your MySQL Server.
Step 1: Type services.msc in the run menu.
Step 2: Find MySQL Service in Services section. The MySQL services are usually named as MySQL56. Right click on it and go to properties.
Step 3: Under General Tab in properties you can find the path of default file in the section Path to executable.
That is it. You can easily find what your MySQL service is using the default configuration file on Windows Platform.
Reference: Pinal Dave (https://blog.sqlauthority.com)