PostgreSQL与asp.net的连接

编程入门 行业动态 更新时间:2024-10-28 18:23:11
本文介绍了PostgreSQL与asp的连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我遇到错误 Npgsql.NpgsqlException {无法建立与"remotServerIP"的连接"} 如果有任何机构可以解决,请plz提供

I am getting error Npgsql.NpgsqlException {"Failed to establish a connection to ''remotServerIP''} If any body have solution so plz provide

推荐答案

如果您有本地服务器(在自己的系统中安装了npgsql),请对服务器使用"localhost" 这是一个示例连接字符串 服务器=本地主机;数据库= db1;用户ID = xxx;密码= xxx; PostgreSql通常安装在端口5432上.如果已安装在其他端口上,则将该端口添加到连接字符串中 例如:Port = 5432; (要找到您的端口,请转到pgsql数据目录并打开postgresql.conf并进行检入) If you have a local server (installed npgsql in your own system) use ''localhost'' for the server Here''s an example connection string Server=localhost;Database=db1; User Id=xxx; Password=xxx; PostgreSql normally installs on port 5432. If you''ve installed on a different port add the port to the connection string Eg: Port=5432; (To find out your port, go to the pgsql data directory & open postgresql.conf & check in it)

更多推荐

PostgreSQL与asp.net的连接

本文发布于:2023-10-18 05:57:24,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1503333.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:PostgreSQL   asp   net

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!