Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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.

share|improve this question
have you set a password for root? –  Alistair Prestidge Jun 15 '10 at 15:50
If nothing else works you could simply reset the root password. dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html –  Zoredache Jan 27 '11 at 4:35

1 Answer 1

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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.