查看: 1210|回复: 2
|
unable to connect to any mysql hosts
[复制链接]
|
|
求救!不懂什么问题。。。
try
{
string myConnection = @"server=localhost,port =3306; database=lipsy2; username=root;password=7483876;";
MySqlConnection myConn = new MySqlConnection(myConnection);
MySqlDataAdapter myDataAdapter = new MySqlDataAdapter();
myDataAdapter.SelectCommand = new MySqlCommand("select * lipsy2.customer;", myConn);
MySqlCommandBuilder cb = new MySqlCommandBuilder(myDataAdapter);
myConn.Open();
// DataSet ds = new DataSet();
txtMsg.Text = "Connected";
myConn.Close();
}
catch (Exception ex)
{
txtMsg.Text = ex.Message;
}
本帖最后由 weevv 于 28-10-2013 02:14 PM 编辑
|
|
|
|
|
|
|
|
发表于 29-10-2013 03:15 PM
|
显示全部楼层
你的 workbench 可以 connect 到 bo ?  |
|
|
|
|
|
|
|

楼主 |
发表于 30-10-2013 04:25 PM
|
显示全部楼层
connect jor and problem solve
is the damn ";" problem
谢谢 |
|
|
|
|
|
|
| |
本周最热论坛帖子
|