Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

492
Visualizações
Setting Up Postgres for the first time in IntelliJ IDEA

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.

over 4 years ago · Santiago Trujillo
2 Respostas
Responde à pergunta

0

Change in the PostgreSQL config file pg_hba.conf parameter for authentication method for IPv4 local connections to 'trust' instead 'md5' or 'peer':

IPv4 local connections:

host all all 127.0.0.1/32 trust

And then, you have to restart your postgresql-server with command - 'sudo service postgresql restart' - it helped for me with the same issue. Sorry for the bad markup, because I'm new here on stackoverflow.

over 4 years ago · Santiago Trujillo Relatório

0

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 ?

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda