Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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. – Zoredache Jan 27 '11 at 4:35

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.