Unable to connect to MariaDB using DBeaver
问题 I just installed MariaDB 10.1.29 on Ubuntu 18.04. From the command line I can connect using sudo: sudo mysql -u root -p But not without sudo. Also, if I try to connect to the database through DBeaver, I get: Could not connect: Access denied for user 'root'@'localhost' While the credentials are correct. I tried installing MySQL 5.7, but I'm experiencing the exact same issue there as well. What am I missing? 回答1: As it turns out, this is expected behaviour for MariaDB and MySQL. To overcome the