dongyuans61046 2017-04-18 17:55
浏览 583

在IntelliJ IDEA中首次设置Postgres

Ok so I am currently trying to set up a Postgres Database on IntelliJ and I'm running into an issue. I was going through the settings trying to understand the different configurations and get a better understanding of what was going on as I've never dealt with any kind of SQL related databases before. Not to my knowledge at least. When I click on the schema tab, this prompt shows up:

The specified user/password combination is rejected: [08004] The server requested password-based authentication, but no password was provided.

This is followed by a prompt asking for a username & password. I entered root (literally) in the username section, and a made up password in the password section, and I got this error message:

The specified user/password combination is rejected: [28P01] FATAL: password authentication failed for user "root".

I am not sure what I am supposed to do as I was never asked to set up a password. From what I get from the prompt, a username seems to have already been defined by IntelliJ. How do I find out what that username is and reset the password? And if that's not the way to go, how should I go about solving this issue?

EDIT: I finally figured it out. The username had to be the same as the name of my database. From then I was able to set up my password, and everything worked fine.

  • 写回答

2条回答 默认 最新

  • dongyan3853 2017-04-18 18:00
    关注

    What did you do while the installation of pg ? I remember that default values are root:root for login credentials Did you try to connect yourself on your db using pg as command line ?

    评论

报告相同问题?

悬赏问题

  • ¥15 微信小程序协议怎么写
  • ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?
  • ¥20 怎么用dlib库的算法识别小麦病虫害
  • ¥15 华为ensp模拟器中S5700交换机在配置过程中老是反复重启
  • ¥15 java写代码遇到问题,求帮助
  • ¥15 uniapp uview http 如何实现统一的请求异常信息提示?
  • ¥15 有了解d3和topogram.js库的吗?有偿请教
  • ¥100 任意维数的K均值聚类
  • ¥15 stamps做sbas-insar,时序沉降图怎么画
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看