I recently followed some tutorials and installed mysql using sudo apt-get install mysql-server-5.7
I can connect to the database using password by running the following command:
sudo mysql -u root -p
I try to connect by running:
mysql -u root -p
but I get the error:
ERROR 1698 (28000): Access denied for user 'root'@'localhost'
Why? How can I fix this?