title: Connecting c#.net To phpmyadmin database(MysqL)
body: <p>I have .NET program written in C# that connects to my website's phpmyadmin which is in cpanel. My problem is that when I'm at the office I can connect to my phpmyadmin server, but when i'm, for example in my house, I can not connect to the server.</p>
  
  <p>I've already included my ISP (www.whatismyip.com/www.speedtest.net) IP in my remoteMySQL in cpanel, but for some reason it only works at the office. Do you think that maybe it is because they are the one hosting the website that I'm connecting to?</p>
  
  <p>My Connection is something like this:</p>
  
  <pre><code>string connection = "SERVER=MyWebsite.com; Database=databse_pcc; Uid=mywebuser; Pwd=password;";
  
          con9.Open();
          MySqlCommand cmd9 = new MySqlCommand("Select * from biometrics_tbl LIMIT 1", con9);
          cmd9.CommandType = CommandType.Text;
          cmd9.Connection = con9;
          MySqlDataReader rdr9 = cmd9.ExecuteReader();
          while (rdr9.Read())
          {
              MessageBox.Show(rdr9.GetString(2));
          }
          con9.Close();
  </code></pre>
  
  <p><em>Note this style of connection is working only at the office :(</em></p>