I've just installed MariaDb
on a fresh Ubuntu Gnome and ran mysql_secure_installation afterwards where I set a decent admin password, removed the anonymous user etc.
Afterwards I realized some strange behavior regarding the admin password:
- If I try to login from my normal user account using the command
mysql -u root -p
I always get an error:ERROR 1698 (28000): Access denied for user 'root'@'localhost'
I'm pretty sure I entered the correct password which I set with mysql_secure_installation earlier... - When I run the command from root using
sudo mysql -u root -p
, I always get access to the database, no matter which password I actually enter...
Is this normal behavior, am I doing anything wrong or have I somehow screwed up the installation?