I just installed Ubuntu 16.04 LTS along with the packages
nginx. I ran
mysql_secure_installation and changed the root password.
Now when I try to login to
mysql using the root account while logged in Ubuntu as normal user account I get access denied.
When I login using
sudo mysql, mysql doesn't even ask me password. If I run
mysql_secure_installtion I see that old settings never got set permanently.
What am I doing wrong?