C#.net проблема с подключением mysql
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();