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 -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -