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
Post a Comment