title: "Unable to connect to any of the specified MySql hosts" when connecting via C#
body: <p>The title pretty much says it all. When I attempt to connect to my SqlServer on my Namecheap hosted web server it throws the "<code>Unable to connect to any of the specified MySql hosts</code>" error message. </p>
  
  <p>Any ideas?</p>
  
  <pre><code>using System;
  using System.Windows.Forms;
  
  using MySql.Data.MySqlClient;
  using System.Threading;
  
  namespace Voting
  {
      public partial class Form1 : Form
      {
          public MySqlConnection connection;
          public string connectionString;
  
          public Form1()
          {
              InitializeComponent();
          }
  
          private void Connect_Click(object sender, EventArgs e)
          {
              Thread connectThread = new Thread(new ThreadStart(DatabaseConnect));
  
              connectThread.Start();
          }
  
          private void DatabaseConnect()
          {
              Connect.Text = "Loading";
  
              connectionString = "Server = mywebsiteishere; Port = 3306; Database = thisdatabase; Uid = mypassword; Password = myusername;";
  
              try
              {
                  connection = new MySqlConnection();
  
                  connection.ConnectionString = connectionString;
  
                  connection.Open();
                  MessageBox.Show("Connection Success!");
              }
  
              catch (MySql.Data.MySqlClient.MySqlException ex)
              {
                  MessageBox.Show(ex.Message);
              }
  
              Connect.Text = "Connect";
          }
      }
  }
  </code></pre>
  
  <p>I want to note that in the <code>connectionString</code> variable, the Server, Database, UID and Password are all in working order. </p>
  
  <p>Thanks for the help!</p>