title: start MySQL server automatically with application start
body: <p>How can I start MySQL server automatically with C# WPF application start?
  I am using xampp. I want to start xampp and then MySQL automatically when the app starts, how to achieve it?
  I tried this:</p>
  <pre><code>ServiceController controller = new ServiceController();
  
              controller.MachineName = &quot;.&quot;;
              controller.ServiceName = &quot;mysql&quot;;
  
              // Start the service
              controller.Start();
  </code></pre>
  <p>but it is not working as it says that mysql service does not exists.</p>