现在的位置: 首页 > 综合 > 正文

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

2012年06月11日 ⁄ 综合 ⁄ 共 169字 ⁄ 字号 评论关闭

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

 

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

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

抱歉!评论已关闭.