c# - Cannot connect to MySql in LIVE environment -


this how connect mysql database:

using mysql.data; using mysql.data.mysqlclient; using system.data.sqlclient;  namespace windowsformsapplication1 {     public partial class form1 : form     {       mysqlconnection con = new mysqlconnection(           "server=xxxxx.capnix.com;userid=cnixxxxxx;password=xxxxxxxxxxxx;database=cnixxxxxxxxxx;");        // mysqlconnection con = new mysqlconnection(       //     "server=localhost;database=pirathidb;uid=pma;password=123456;");     } } 

the localhost connection working properly, cannot conect live server database. error message:

unable connect of specified mysql hosts.

any idea doing wrong?


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -