Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

2.1K
Views
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 answers
Answer question

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 Report

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 Report

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!