I am able to login with mysql -u root -p
but not with
mysql -u root@localhost -p
It says
ERROR 1045 (28000): Access denied for user 'root@localhost'@'localhost' (using password: YES)
I am able to login with mysql -u root -p
but not with
mysql -u root@localhost -p
It says
ERROR 1045 (28000): Access denied for user 'root@localhost'@'localhost' (using password: YES)
2
Answers
You need to specify the host to connect to.
try:
Below below command: