I am trying to login to mysql via terminal and phpmyadmin it says cannot access localhost.

Below is the return message when trying to login via the terminal

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) root@x27:/var/lib/phpmyadmin# mysql --user=root -pass root

I installed the mysqladministrator GUI too.


You would need to reset the root password - it looks like you supplied an incorrect one.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy