I installed mysql server on my Ubuntu 16.04 LTS (mysql-server
). When prompted for root password, as shown in the attached image, I chose to skip (entered Enter).
But when finished installing, I can't run mysql with root user:
m1@alex:~$ mysql -u root
ERROR 1698 (28000): Access denied for user 'root'@'localhost'
What's the issue here? I see some answers for setting password but I was following a tutorial (on the left half of the image posted and they do it successfully without the password and I'd like to do the same.) ~