用3.X 有时会报出 Unable to connect 返回
ex:MySql.Data.MySqlClient.MySqlException (0x80004005): Unable to connect to any of the specified MySQL hosts.
在 MySql.Data.MySqlClient.NativeDriver.Open()
在 MySql.Data.MySqlClient.Driver.Open()
在 MySql.Data.MySqlClient.MySqlPool.CreateNewPooledConnection()
在 MySql.Data.MySqlClient.MySqlPool.GetPooledConnection()
在 MySql.Data.MySqlClient.MySqlPool.TryToGetDriver()
在 MySql.Data.MySqlClient.MySqlPool.GetConnection()
在 MySql.Data.MySqlClient.MySqlConnection.Open()
在 MySqlSugar.SqlHelper..ctor(String connectionString)
在 MySqlSugar.SqlSugarClient..ctor(String connectionString)
在 SqlSugarRepository.MySqlSugarClient..ctor(String connectionString)
在 SqlSugarRepository.DbRepository.GetConnectionClient(DbType type, String connectionString)
在 SqlSugarRepository.DbRepository.GetInstance(DbType type, String connectionString)
热忱回答(1)
-
程序 VIP0
2018/6/8异常信息已经输出来了,很明确. 数据库主机无法连接, 检查主机地址,端口
0 回复