简体   繁体   English

无法使用GUI连接到数据库

[英]Cannot connect to database using GUI

Hello its my first time using GUI software for postgres. 您好,这是我第一次使用GUI软件进行postgres。 I want to know how to connect to my database using pdAdmin or any other software. 我想知道如何使用pdAdmin或任何其他软件连接到我的数据库。

I usually connect using command line 我通常使用命令行连接

  1. I use ssh @example.ax 我使用ssh @ example.ax
  2. I insert my password. 我输入密码。
  3. I use psql -h webdb to connect to postgres 我使用psql -h webdb连接到postgres
  4. I enter my database password. 我输入数据库密码。
    Inside Postgres 内部Postgres

How can I connect using a GUI software? 如何使用GUI软件进行连接? or would i be able to? 还是我可以?

  1. Click 'Add a connection to a server' button at the top left. 点击左上方的“将连接添加到服务器”按钮。
  2. In the dialog box that appears, fill in the details 在出现的对话框中,填写详细信息

    2.1 Name: Anything relevant to your database 2.1名称:与您的数据库相关的任何内容

    2.2 Host: Address of your database (localhost, any other IP address) 2.2主机:数据库地址(本地主机,任何其他IP地址)

    2.3 Port: The port in which database is running on (5432 default) 2.3端口:运行数据库的端口(默认为5432)

    2.4 Username: Username you use to log in to the database 2.4用户名:用于登录数据库的用户名

    2.4 Password: Password to log in to the database 2.4密码:登录数据库的密码

    Leave other options as they are. 保留其他选项不变。 You can additionally configure colors. 您还可以配置颜色。

  3. Click on to View -> Tick Object browser (CTRL + ALT + O) will work too 单击查看->勾号对象浏览器(CTRL + ALT + O)也将起作用
  4. There you'll see your recently added server. 在这里,您会看到最近添加的服务器。 Connect to it. 连接到它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM