如何使用PSequel GUI连接到Mac上的localhost PostgreSQL? [英] How to connect to localhost PostgreSQL on Mac using PSequel GUI?

查看:136
本文介绍了如何使用PSequel GUI连接到Mac上的localhost PostgreSQL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我关注了本教程在我的Mac上安装PG.这是我第一次在本地使用PG.在此之前,我在Rails项目中经常使用Sqlite.

I followed this tutorial to install PG on my Mac. It's my first time using PG locally. I used Sqlite a lot in my Rails projects before this.

我找到了这个 PSequel GUI应用,并且我刚刚安装了它.但是我不知道如何连接到我的本地PostgreSQL数据库.

I found this PSequel GUI app and I just installed it. But I've no idea how to connect to my localhost PostgreSQL databases.

我是什么?

  1. 主机/套接字?
  2. 端口? (我使用localhost:3000在本地测试我的Rails应用)
  3. 用户?
  4. 密码?
  5. 数据库?
  1. Host/Socket?
  2. Port? (I use localhost:3000 to test my Rails app locally)
  3. User?
  4. Password?
  5. Database?

谢谢.

推荐答案

localhost:3000

创建用户角色postgres用户使用createuserpsql终端实用程序进行连接之前.

you are, but you must create the user role before connection as of the postgres user with createuser or psql terminal utilities.

密码

创建用户时,只需将密码保留为空.这样您就可以在表格中将该字段保留为空.

When you will create the user just leave password empty. So you be able then stay the field empty in the form.

数据库

这是数据库名称.

这篇关于如何使用PSequel GUI连接到Mac上的localhost PostgreSQL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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