Sziasztok!
Visual studio 2010 ultimate-en dolgozok és akárhányszor kapcsolódni szeretnék az atw adatbázisához ezt a hibaüzenetet kapom vissza (127.0.0.1):
Access denied for user 'felhaszn'@'localhost' (using password: YES)
avagy (88.151.96.4):
Unable to connect to any of the specified MySQL hosts.
a kód amit használok :
string MyConString = "SERVER=88.151.96.4;Port=3306;DATABASE=felhasznnev;UID=felhasznnev;PASSWORD=
jelszo;";
MySqlConnection connection = new MySqlConnection(MyConString);
MySqlCommand command = connection.CreateCommand();
command.CommandText = "select * from users";
connection.Open();
MySqlDataReader Reader = command.ExecuteReader();
while (Reader.Read())
{
string thisrow = "";
for (int i = 0; i < Reader.FieldCount; i++)
thisrow += Reader.GetValue(i).ToString() + ",";
listBox1.Items.Add(thisrow);
}
connection.Close();
a server résznél próbálkoztam úgy is hogy a portot közvetlenül a szerverhez írom pl így : 127.0.0.1:3308 ez se volt hajlandó csatlakozni.
elõre is köszönöm a segtséget!