日期:2014-05-17  浏览次数:20526 次

Unable to connect to any of the specified MySQL hosts为什么连不上mysql?
<add name="MySql" connectionString="server=127.0.0.1:8080;user=root;password=123456;database=school)"/>

------解决方案--------------------
可能是连接字符串的问题,试试这个链接字符串,我用过的 有效 呵呵

<add key="MySqlString" value="server=localhost;port=3306;user id=userid;password=123456;database=dbname;CharSet=utf8;Allow Zero Datetime=true"/>