Linux (Ubuntu 18.04) user, executed the following commands using this tutorial:
807 sudo apt-get update
808 sudo apt-get install mysql-server
809 sudo ufw allow mysql
810 systemctl start mysql
811 systemctl enable mysql
812 /usr/bin/mysql -u root -p
The output from the last line is:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
I get the same result without the -p
:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
Any ideas? I've tried uninstalling and reinstalling several times, and the password I input at the prompts was my root password.
EDIT: I have tried both with and without sudo
, I still get the same results
My Linux version:
Distributor ID: Ubuntu
Description: Bodhi Linux 5
Release: 18.04
Codename: bionic
My MySQL version:
mysql Ver 14.14 Distrib 5.7.25, for Linux (x86_64) using EditLine wrapper