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 -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -

Python Tornado package error when running server -