I want to connect Remote MySQL dataase from C#.net but not connecting. always displaying message 'Unable to connect to any of the specified MySQL hosts.'. How to fixed it.
string ConnString = "SERVER=nepalidiary.com; Port=3306;DATABASE=bsslearn_db;UID='';PWD='abc';"; string SQL = "Select * from tbl_StudentProfile"; MySqlConnection cnn = new MySqlConnection(); cnn.ConnectionString = ConnString; MySqlCommand cmd = cnn.CreateCommand(); cnn.Open(); cmd.ExecuteNonQuery();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)