title: c# mysql webhosting connection fail server
body: <p>Hi I'm having a problem with my windows form application. It was working fine until I migrated my DB from localhost to a web host. I activate "MYSQL REMOTE" but I can't connect my application to the database. Instead, I get this error message: </p>
  
  <blockquote>
    <p>Unable to connect to any of the specified mysql hosts</p>
  </blockquote>
  
  <p>I tried to disable the Windows firewall and didn't work. I also tried to connect from mysql workbench but don't work either. I´m using the same PC that manage the Cpanel, don't know if that's my problem.</p>
  
  <p>My connection string is this </p>
  
  <pre><code>server = "miServidor";
  dataBase = "miBaseDatos";
  user = "miUsuario";
  password = "miContraseña"; 
  string cadenaConeccion;
  cadenaConeccion = "SERVER=" + server + ";" + "DATABASE=" + dataBase + ";" + "UID=" + user + ";" + "PASSWORD=" + password + ";";
  coneccion = new MySqlConnection(cadenaConeccion) 
  </code></pre>