Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

dbeaver mysql access denied

Can anyone tell me why I got an alert with the access denied error? I tried to create a mysql database and I confidently sure I entered the correct password for root yet I still got this error.

However, based on the mysql documentation for troubleshooting, my error specified that I did not enter the correct password which in fact I did not.

Mysql documentation

https://dev.mysql.com/doc/refman/5.5/en/problems-connecting.html

Also , I tried to run this command sudo mysql -u root -pand it also show me the same error.

Here is the error

P.S Because my reputation is too low, I can't attach the full image.

like image 505
Wolver Ing Avatar asked Jul 11 '18 14:07

Wolver Ing


People also ask

Can DBeaver connect to MySQL?

DBeaver can be used to access any database or cloud application that has an ODBC or JDBC driver, such as Oracle, SQL Server, MySQl, Salesforce, or Mailchimp. Devart DBeaver provides you with the most important features you'd need when working with a database in a GUI tool, such as: SQL queries execution.

How do I set up a new DBeaver database?

DBeaver allows you to work with all popular databases. The first thing you have to do is to create a connection. Our app provides a wizard that guides you through the steps to do it. To open a wizard, click on the plug icon in the upper left corner of the application window or go to Database -> New Database Сonnection.


1 Answers

might be check you are currently connect with the correct password plugin, use the following Command, SELECT user, authentication_string, plugin, host FROM mysql.user; enter image description here

If your are login with root, check whether plugin is "mysql_native_password" if not, change as it is with the following command.

ALTER USER 'root'@'localhost IDENTIFIED WITH mysql_native_password BY 'Password@123'

like image 97
Eranda J. Avatar answered Sep 18 '22 17:09

Eranda J.