Cant connect to MySQL server on '{0}' ({1})
Posted: Sun 27 Jun 2010 16:34
dotConnect for MySQL Mobile Standard 5.80.140 Release date 21-May-2010
wireless device: Windows CE 5.0 (.NET Compact Framework)
http://www.opticon.com/H15.aspx
visual studio 2008, c#.net
error: Cant connect to MySQL server on '{0}' ({1})
coding:
using Devart.Data.MySql;
..
..
private Devart.Data.MySql.MySqlConnection mySqlConnection;
private Devart.Data.MySql.MySqlCommand mySqlCommand;
private void button1_Click(object sender, EventArgs e)
{
mySqlConnection = new Devart.Data.MySql.MySqlConnection();
mySqlCommand = new Devart.Data.MySql.MySqlCommand();
mySqlConnection.ConnectionString = "User Id=root;Database=mysql;Host=192.168.1.22;";
mySqlCommand.Connection = mySqlConnection;
mySqlCommand.Connection.Open(); <-- error
..
..
}
1. Devart.Data.MySql.dll is added in References
2. I have try to ping ip 192.168.1.22 from wireless device, there is no problem
3. I have try to change the ip to 'localhost' and server name 'unet1', but same error
4. i'm not run it on emulator, i always compile it and run on wireless device
so ..
may i know why the following error happen?
Cant connect to MySQL server on '{0}' ({1})
or what else information your need to know?
thanks.
wireless device: Windows CE 5.0 (.NET Compact Framework)
http://www.opticon.com/H15.aspx
visual studio 2008, c#.net
error: Cant connect to MySQL server on '{0}' ({1})
coding:
using Devart.Data.MySql;
..
..
private Devart.Data.MySql.MySqlConnection mySqlConnection;
private Devart.Data.MySql.MySqlCommand mySqlCommand;
private void button1_Click(object sender, EventArgs e)
{
mySqlConnection = new Devart.Data.MySql.MySqlConnection();
mySqlCommand = new Devart.Data.MySql.MySqlCommand();
mySqlConnection.ConnectionString = "User Id=root;Database=mysql;Host=192.168.1.22;";
mySqlCommand.Connection = mySqlConnection;
mySqlCommand.Connection.Open(); <-- error
..
..
}
1. Devart.Data.MySql.dll is added in References
2. I have try to ping ip 192.168.1.22 from wireless device, there is no problem
3. I have try to change the ip to 'localhost' and server name 'unet1', but same error
4. i'm not run it on emulator, i always compile it and run on wireless device
so ..
may i know why the following error happen?
Cant connect to MySQL server on '{0}' ({1})
or what else information your need to know?
thanks.