连接语句:
 MySqlConnection mysqlconn = new MySqlConnection("server=localhost;pwd= ;user=root;database=ztn;charset='gb2312'");//1,服务器 2 Mysql的密码 3 mysql的用户名 4 数据库名 5 数据库编码方式报错信息:
Unable to connect to any of the specified MySQL hosts.数据库在本机,  用户名为 root  , 空密码  
我理解是 找不到 数据库, 但是我用SQLyog 查看的时候使用 root ,空密码就能上去, 有人知道为什么么?