MySql.Data.MySqlClient.MySqlException (0x80004005): Unable to connect to any of the specified MySQL hosts.

转自:https://blog.csdn.net/zhaoqi5705/article/details/12087649?locationNum=15

MySql.Data.MySqlClient.MySqlException (0x80004005): Unable to connect to any of the specified MySQL hosts. 

---> System.Net.Sockets.SocketException (0x80004005): 由于系统缓冲区空间不足或队列已满,不能执行套接字上的操作。 ---------

开发环境:程序是.net 数据库是mysql

解决办法:

将数据库连接配置里的连接池设置为true  (;Pooling=true)

原文地址:https://www.cnblogs.com/wdw31210/p/9837337.html