hi
iam suffering a lot with connecting the mysql database to my windows application which was developed in C#.net , and i am trying to connect through the mysql dotnetconnector,
i had tried a lot ,i am getting the differtent types of errors so please try to help he, i had asked the same question before also but .....
i need some help that where i am going worng, please let me know
this is my sample code
<pre lang="cs">
MySqlConnection con = new MySqlConnection("server=192.168.0.89;database=test;uid=root;Pwd=dafd17512;");
if (con.State.ToString() != "Open")
{
con.Open();
}
when iam pinging i am getting the good result and more over in my browser i am opening and also creating the database from my browser only,
so i think i am going in the fine way but when i tried through the program line
i am getting the errors like
Host '22NDSTRE-F72BB9' is not allowed to connect to this MySQL server
here 22NDSTRE-F72BB9 is my system name , iam tring to communicate beetween the windows xp and windows7 and i also tried between windows xp- windowsxp
but no use so please give me a valiable suggestion
when i am trying to connect to localhost , its working perfectly
that sample code is
<pre lang="cs">
MySqlConnection con = new MySqlConnection("database=test1;server=localhost;uid=root;");
if (con.State.ToString() != "Open")
{
con.Open();
}
please give suggestion