MySQL – Locate the Configuration File – my.ini or my.cnf on Windows Platform

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.

MySQL - Locate the Configuration File - my.ini or my.cnf on Windows Platform myini1

Step 2: Find MySQL Service in Services section. The MySQL services are usually named as MySQL56. Right click on it and go to properties.

MySQL - Locate the Configuration File - my.ini or my.cnf on Windows Platform myini2

Step 3: Under General Tab in properties you can find the path of default file in the section Path to executable.

MySQL - Locate the Configuration File - my.ini or my.cnf on Windows Platform myini3

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)

Previous Post
SQL SERVER – Start Services or Stop Services with PowerShell – Answer to Question
Next Post
SQL SERVER – How to Survive on Free Tools for Month – Enjoy Refactoring – ApexSQL Refactor

Related Posts

6 Comments. Leave new

Leave a Reply

Menu