I have installed mariadb and when as a Linux root user, I can run mysql command to access the database. But when I try to login as a normal Linux user and run mysql -u root -p
, I am getting error:
ERROR 1698 (28000): Access denied for user 'root'@'localhost'.
I tried several methods like reset password for the mysql root user, but no use.
Any help will be great.
Best Answer
I had the same problem, it was caused by a "plugin" value in "mysql.user" table.
Have you tried with this answer: https://askubuntu.com/a/636579/299538
Here is an explanation for that: https://superuser.com/a/1071043/592085