如何在Postgre SQL中查找连接字符串参数 [英] How to find the connection string arguments in Postgre SQL

查看:288
本文介绍了如何在Postgre SQL中查找连接字符串参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我想将以下连接字符串提供给我的用于postgre sql连接的c尖锐代码,但是我不知道如何获取我的postgre sql的登录信息,我已经在PC中安装了postgre sql 8.4和EMS数据管理,并且我正在使用EMS PostgreSQL sql管理,如上所述,我想找到这些连接字符串参数,是否有任何查询/选项来获取此详细信息.


Postgre sql的Connetion字符串
-----------------------

Hi,


I want give the following connection string to my c sharp code for postgre sql connection but I dont know how to take login information of my postgre sql, I have installed postgre sql 8.4 and EMS data managment in my PC and I am working with EMS for postgre sql management, as I said above I want to find these connection string arguments, Is there any query/options to get this details.


Connetion String for postgre sql
-----------------------

NpgsqlConnection conn = new NpgsqlConnection("Server=127.0.0.1;Port=5432;User 

Id=postgres;Password=secret;Database=databasename;");


如何找到此服务器,端口,用户ID,Pwd ...等?

有人请帮助我..在此先感谢


how to find this Server,Port,UserID,Pwd...etc ?

somebody please help me.. Thanks in advance

推荐答案

在C#(.NET)应用程序中使用PostgreSQL(简介) [ ^ ]


这篇关于如何在Postgre SQL中查找连接字符串参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆