 <p>Try using this method to get the running service. The Path gives the service MySQL..</p> <pre><code>ManagementClass mc = new ManagementClass("Win32_Service"); var Instances = mc.GetInstances().Cast&lt;ManagementObject&gt;().ToList(); foreach (ManagementObject o in Instances) { if (o.GetPropertyValue("PathName").Contains("mysqld.exe")) /// is a mysql service } </code></pre>