I have a mariaDB 10.3 install. The mysql.table states that 'root' login relies on mysql_native_password plugin, with no password set.
If my linux user is root, I am able to connect to mysql using;
mysql -u root -h localhost
If I login as a non privileged Linux user, when I try to connect to mysql, I get the following error:
ERROR 1698 (28000): Access denied for user 'root'@'localhost'
Usually people having this issue have a plugin like unix_sock enabled (ex see this reply), but I don't. And by reading the mysql_native_password doc, I don't think the plugin is the issue. This plugin doesn't seem to rely on the Linux user to authenticate (I'm not native English, I may missed the point).
Any idea ?