.net 使用管道方式访问mySQL的连接字符串

string connStr = String.Format("server={0};user id={1}; password={2}; database=mysql; pooling=true;protocol=pipe;",

经查服务器后台,发现连接确实使用了管道,没有出现连接端口。

其它使用 port=-1,会出现:值对于 UInt32 太大或太小。

原文地址:https://www.cnblogs.com/fjwuyongzhi/p/2839236.html