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

2.1K
Visualizações
Access denied for user 'root'@'localhost' in dbeaver

When I do a test connection in DBeaver in Ubuntu 18.04, I get an error:

Access denied for user 'root'@'localhost'

I do not understand how to solve this. I can connect to mysql in terminal by sudo mysql.

enter image description here

I have also left the database field empty.

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

0

Experienced a similar issue. Maybe this advice will help you to solve the error. Your user’s password should not contain any special characters. In my case, ’~’ in password was the whole reason of problem.

over 4 years ago · Santiago Trujillo Relatório

0

It works with Mariadb too. You must check the syntax of step 3, in MariaDB is:

ALTER USER 'rot'@'localhost' IDENTIFIED VIA mysql_native_password USING PASSWORD('password');

Thanks @gasgen.

If this problem keeps happening to someone, the reason is that Ubuntu Mint (and other distros) no longer come with a 'blank' password by default. So, we need to reset it:

sudo mysql_secure_installation

Select the password level you want, write it, and then yes (Y) to all. Then:

 sudo mysql

And execute (change the word password with the password you have written before):

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';

That's all, now you can configure local DB in DBeaver with the new password. Hope this works for you.

over 4 years ago · Santiago Trujillo Relatório

0

If this problem keeps happening to someone, the reason is that Ubuntu, Mint (and other distros) they no longer come with a 'blank' password for default. So, we need to reset it:

sudo mysql_secure_installation

Select the password level you want, write it and then yes (Y) to all. Then:

sudo mysql

And execute (change the word password with the password you have written before):

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';

That's all, now you can configure local DB in DBeaver with the new password. Hope this works for you.

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