title: What's the best way for a C# Desktop client to connect to a remote MySQL Db?
body: <p>I am just learning c#, and am programming a Windows client that collects temperature data from the computer and needs to send it to a remote linux mySQL Database.</p>
  
  <p>I was going to program it directly in the c# client, but I want to learn more ways to do this and gain experience. And programming it directly would be less secure and most likely require an extra connector.</p>
  
  <p>Can any of you advise me of other ways, or ways you would do this? </p>
  
  <ul>
  <li><p><strong>Any way to program a C# program that acts as a web-service on my linux mySQL Server? Where should I look/search to learn more about this. Is it called something special? Or maybe its not done in C#?</strong></p></li>
  <li><p><strong>Should I program a php script that accepts HTTP SEND/GET requests from my C# Desktop client?</strong></p></li>
  <li><p><strong>Any other way?</strong></p></li>
  </ul>
  
  <p>What way is most 'professional' in the real world? Trying to learn on my own! :D</p>
  
  <p>FORMAT:</p>
  
  <ul>
  <li>Windows Desktop: client programmed in C# That retrieves temp data and needs to send to server</li>
  <li>Linux Server: Runs Apache and mySQL Server with a database already setup. Closed to outside Connections</li>
  </ul>